Skip to content
Snippets Groups Projects
Commit 33b1fa94 authored by Yutao Ai's avatar Yutao Ai Committed by Dr. David Alan Gilbert
Browse files

monitor:Don't use '#' flag of printf format ('%#') in format strings


Delete '#' and use '0x' prefix instead

Signed-off-by: default avatarYutao Ai <aiyutao@huawei.com>
Message-Id: <20201125014514.55562-4-aiyutao@huawei.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
parent 89854b95
No related branches found
No related tags found
Loading
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment