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
2
hxtool
2
hxtool
@ -59,6 +59,7 @@ hxtoqmp()
|
|||||||
{
|
{
|
||||||
IFS=
|
IFS=
|
||||||
flag=0
|
flag=0
|
||||||
|
line=1
|
||||||
while read -r str; do
|
while read -r str; do
|
||||||
case "$str" in
|
case "$str" in
|
||||||
HXCOMM*)
|
HXCOMM*)
|
||||||
@ -87,6 +88,7 @@ hxtoqmp()
|
|||||||
test $flag -eq 1 && echo "$str"
|
test $flag -eq 1 && echo "$str"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
line=$((line+1))
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user