mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-03-04 09:04:39 -07:00
hxtool: Fix line number reporting on SQMP/EQMP errors
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
28e91a681a
commit
02e95918b8
1 changed files with 2 additions and 0 deletions
2
hxtool
2
hxtool
|
|
@ -59,6 +59,7 @@ hxtoqmp()
|
|||
{
|
||||
IFS=
|
||||
flag=0
|
||||
line=1
|
||||
while read -r str; do
|
||||
case "$str" in
|
||||
HXCOMM*)
|
||||
|
|
@ -87,6 +88,7 @@ hxtoqmp()
|
|||
test $flag -eq 1 && echo "$str"
|
||||
;;
|
||||
esac
|
||||
line=$((line+1))
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue