Message ID | 20201125014514.55562-4-aiyutao@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Fix some style problems in monitor | expand |
On 11/25/20 2:45 AM, Yutao Ai wrote: > Delete '#' and use '0x' prefix instead > > Signed-off-by: Yutao Ai <aiyutao@huawei.com> > --- > monitor/misc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
diff --git a/monitor/misc.c b/monitor/misc.c index 7588f12053..2eb563f6f3 100644 --- a/monitor/misc.c +++ b/monitor/misc.c @@ -910,7 +910,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); }
Delete '#' and use '0x' prefix instead Signed-off-by: Yutao Ai <aiyutao@huawei.com> --- monitor/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)