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:
Jan Kiszka 2010-06-02 09:06:03 +02:00 committed by Luiz Capitulino
parent 28e91a681a
commit 02e95918b8

2
hxtool
View File

@ -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
}