summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYutao Ai2020-11-25 02:45:14 +0100
committerDr. David Alan Gilbert2020-12-18 11:08:24 +0100
commit33b1fa9485fc01d4a0f4b71987aa211797ddf770 (patch)
tree07918497c7bdd1cffefd8ac6d19249e105e0106d
parentmonitor:braces {} are necessary for all arms of this statement (diff)
downloadqemu-33b1fa9485fc01d4a0f4b71987aa211797ddf770.tar.gz
qemu-33b1fa9485fc01d4a0f4b71987aa211797ddf770.tar.xz
qemu-33b1fa9485fc01d4a0f4b71987aa211797ddf770.zip
monitor:Don't use '#' flag of printf format ('%#') in format strings
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>
-rw-r--r--monitor/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor/misc.c b/monitor/misc.c
index 09f9a74d78..6f5ae096dc 100644
--- 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);
}