projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7a4155
)
qapi/string-output-visitor: fix human output
author
Hu Tao
<hutao@cn.fujitsu.com>
Fri, 20 Jun 2014 05:55:42 +0000
(13:55 +0800)
committer
Michael S. Tsirkin
<mst@redhat.com>
Mon, 23 Jun 2014 14:38:00 +0000
(17:38 +0300)
"0x1-0x10" looks better than "0x1-10"
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
qapi/string-output-visitor.c
patch
|
blob
|
history
diff --git
a/qapi/string-output-visitor.c
b/qapi/string-output-visitor.c
index e9aca3bfdcff4b9a750bada38bfaed53fb642402..1ab8574585c3d3038dd08908ad6fed853a486cd4 100644
(file)
--- 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 {