Skip to contentSkip to conversation

hxtool: Fix line number reporting on SQMP/EQMP errors

PATCH In review Jan Kiszka 2 participants 2 messages Jun 2, 2010 – Jun 4, 2010

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 hxtool: Fix line number reporting on SQMP/EQMP errors

From: Jan Kiszka <[email protected]>

---
 hxtool |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
hxtool +2 -0
index d499dc0..7ca83ed 100644
@@ -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
 }
 
Signature · 1 line
1.6.0.2
#1 lore raw
Quoted 3 lines · On Wed, 02 Jun 2010 09:06:03 +0200 Jan Kiszka <[email protected]> wrote:

From: Jan Kiszka <[email protected]>

Looks good.

Quoted 24 lines
---
 hxtool |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
hxtool +2 -0
index d499dc0..7ca83ed 100644
@@ -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
 }