qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
	Anthony Liguori <aliguori@us.ibm.com>,
	Stefan Hajnoczi <stefanha@redhat.com>
Subject: [Qemu-devel] [PATCH 5/8] serial: Fix debug format strings
Date: Fri, 22 Mar 2013 16:14:18 +0100	[thread overview]
Message-ID: <1363965261-22267-6-git-send-email-stefanha@redhat.com> (raw)
In-Reply-To: <1363965261-22267-1-git-send-email-stefanha@redhat.com>

From: Kevin Wolf <kwolf@redhat.com>

This fixes the build of hw/serial.c with DEBUG_SERIAL enabled.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 hw/serial.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/serial.c b/hw/serial.c
index 48a5eb6..0ccc499 100644
--- a/hw/serial.c
+++ b/hw/serial.c
@@ -306,7 +306,7 @@ static void serial_ioport_write(void *opaque, hwaddr addr, uint64_t val,
     SerialState *s = opaque;
 
     addr &= 7;
-    DPRINTF("write addr=0x%02x val=0x%02x\n", addr, val);
+    DPRINTF("write addr=0x%" HWADDR_PRIx " val=0x%" PRIx64 "\n", addr, val);
     switch(addr) {
     default:
     case 0:
@@ -527,7 +527,7 @@ static uint64_t serial_ioport_read(void *opaque, hwaddr addr, unsigned size)
         ret = s->scr;
         break;
     }
-    DPRINTF("read addr=0x%02x val=0x%02x\n", addr, ret);
+    DPRINTF("read addr=0x%" HWADDR_PRIx " val=0x%02x\n", addr, ret);
     return ret;
 }
 
-- 
1.8.1.4

  parent reply	other threads:[~2013-03-22 15:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-22 15:14 [Qemu-devel] [PULL 0/8] Trivial patches for 9 to 22 March 2013 Stefan Hajnoczi
2013-03-22 15:14 ` [Qemu-devel] [PATCH 1/8] MinGW: Replace setsockopt by qemu_setsocketopt Stefan Hajnoczi
2013-03-22 15:14 ` [Qemu-devel] [PATCH 2/8] memory: fix a bug of detection of memory region collision Stefan Hajnoczi
2013-03-22 15:14 ` [Qemu-devel] [PATCH 3/8] Advertise --libdir in configure --help output Stefan Hajnoczi
2013-03-22 15:14 ` [Qemu-devel] [PATCH 4/8] Fix typos and misspellings Stefan Hajnoczi
2013-03-22 15:14 ` Stefan Hajnoczi [this message]
2013-03-22 15:14 ` [Qemu-devel] [PATCH 6/8] Use proper term in TCG README Stefan Hajnoczi
2013-03-22 15:14 ` [Qemu-devel] [PATCH 7/8] gitignore: ignore more files Stefan Hajnoczi
2013-03-22 15:14 ` [Qemu-devel] [PATCH 8/8] qdev: remove redundant abort() Stefan Hajnoczi

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=1363965261-22267-6-git-send-email-stefanha@redhat.com \
    --to=stefanha@redhat.com \
    --cc=aliguori@us.ibm.com \
    --cc=kwolf@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).