From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz6Yq-0004UP-V3 for qemu-devel@nongnu.org; Mon, 23 Jun 2014 11:53:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wz6Yl-0001oI-08 for qemu-devel@nongnu.org; Mon, 23 Jun 2014 11:53:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:18797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz6Yk-0001o9-O7 for qemu-devel@nongnu.org; Mon, 23 Jun 2014 11:53:30 -0400 Date: Mon, 23 Jun 2014 18:53:48 +0300 From: "Michael S. Tsirkin" Message-ID: <1403538745-18622-13-git-send-email-mst@redhat.com> References: <1403538745-18622-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1403538745-18622-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL 12/23] qapi/string-output-visitor: fix human output List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Hu Tao , Michael Roth , Luiz Capitulino , Anthony Liguori From: Hu Tao "0x1-0x10" looks better than "0x1-10" Signed-off-by: Hu Tao Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Eric Blake --- qapi/string-output-visitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/string-output-visitor.c b/qapi/string-output-visitor.c index e9aca3b..1ab8574 100644 --- a/qapi/string-output-visitor.c +++ b/qapi/string-output-visitor.c @@ -98,7 +98,7 @@ static void format_string(StringOutputVisitor *sov, Range *r, bool next, { if (r->end - r->begin > 1) { if (human) { - g_string_append_printf(sov->string, "0x%" PRIx64 "-%" PRIx64, + g_string_append_printf(sov->string, "0x%" PRIx64 "-0x%" PRIx64, r->begin, r->end - 1); } else { -- MST