projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89854b9
)
monitor:Don't use '#' flag of printf format ('%#') in format strings
author
Yutao Ai
<aiyutao@huawei.com>
Wed, 25 Nov 2020 01:45:14 +0000
(
01:45
+0000)
committer
Dr. David Alan Gilbert
<dgilbert@redhat.com>
Fri, 18 Dec 2020 10:08:24 +0000
(10:08 +0000)
Delete '#' and use '0x' prefix instead
Signed-off-by: Yutao Ai <aiyutao@huawei.com>
Message-Id: <
20201125014514
.55562-4-aiyutao@huawei.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
monitor/misc.c
patch
|
blob
|
history
diff --git
a/monitor/misc.c
b/monitor/misc.c
index 09f9a74d78f49d145dab43d416a9cd5d26f949b2..6f5ae096dc6b5bb8755bd0eb86a5823ff06372f5 100644
(file)
--- a/
monitor/misc.c
+++ b/
monitor/misc.c
@@
-919,7
+919,7
@@
static void hmp_ioport_read(Monitor *mon, const QDict *qdict)
suffix = 'l';
break;
}
- monitor_printf(mon, "port%c[0x%04x] =
%#
0*x\n",
+ monitor_printf(mon, "port%c[0x%04x] =
0x%
0*x\n",
suffix, addr, size * 2, val);
}