From patchwork Fri Jun 11 19:58:15 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 55365 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 9A75B1007D2 for ; Sat, 12 Jun 2010 06:15:03 +1000 (EST) Received: from localhost ([127.0.0.1]:58940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONAd2-0007kf-Pq for incoming@patchwork.ozlabs.org; Fri, 11 Jun 2010 16:15:00 -0400 Received: from [140.186.70.92] (port=49407 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONANC-0004ki-KR for qemu-devel@nongnu.org; Fri, 11 Jun 2010 15:58:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONANB-0004Tk-Gy for qemu-devel@nongnu.org; Fri, 11 Jun 2010 15:58:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61526) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONANB-0004TZ-AU for qemu-devel@nongnu.org; Fri, 11 Jun 2010 15:58:37 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5BJwaPN023062 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 11 Jun 2010 15:58:36 -0400 Received: from localhost (dhcp-32-227.gru.redhat.com [10.96.32.227]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o5BJwY21009037; Fri, 11 Jun 2010 15:58:35 -0400 From: Luiz Capitulino To: aliguori@us.ibm.com Date: Fri, 11 Jun 2010 16:58:15 -0300 Message-Id: <1276286295-17601-11-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1276286295-17601-1-git-send-email-lcapitulino@redhat.com> References: <1276286295-17601-1-git-send-email-lcapitulino@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Jan Kiszka , qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH 10/10] hxtool: Fix line number reporting on SQMP/EQMP errors X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Jan Kiszka Signed-off-by: Jan Kiszka Signed-off-by: Luiz Capitulino --- hxtool | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hxtool b/hxtool index d499dc0..7ca83ed 100644 --- a/hxtool +++ b/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 }