All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yutao Ai <aiyutao@huawei.com>
To: <dgilbert@redhat.com>, <armbru@redhat.com>
Cc: alex.chen@huawei.com, aiyutao@huawei.com, qemu-devel@nongnu.org
Subject: [PATCH 3/3] monitor:Don't use '#' flag of printf format ('%#') in format strings
Date: Wed, 25 Nov 2020 01:45:14 +0000	[thread overview]
Message-ID: <20201125014514.55562-4-aiyutao@huawei.com> (raw)
In-Reply-To: <20201125014514.55562-1-aiyutao@huawei.com>

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(-)

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);
 }
 
-- 
2.19.1



  parent reply	other threads:[~2020-11-25  2:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-25  1:45 [PATCH 0/3] Fix some style problems in monitor Yutao Ai
2020-11-25  1:45 ` [PATCH 1/3] monitor:open brace '{' following struct go on the same line Yutao Ai
2020-11-25  1:45 ` [PATCH 2/3] monitor:braces {} are necessary for all arms of this statement Yutao Ai
2020-11-25  1:45 ` Yutao Ai [this message]
2020-11-25  8:09   ` [PATCH 3/3] monitor:Don't use '#' flag of printf format ('%#') in format strings Philippe Mathieu-Daudé
2020-12-08 16:39 ` [PATCH 0/3] Fix some style problems in monitor Dr. David Alan Gilbert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201125014514.55562-4-aiyutao@huawei.com \
    --to=aiyutao@huawei.com \
    --cc=alex.chen@huawei.com \
    --cc=armbru@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.