WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] ioemu hvmloader erronoeous debugging prints

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] ioemu hvmloader erronoeous debugging prints
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Tue, 22 Jul 2008 16:00:21 +0100
Delivery-date: Tue, 22 Jul 2008 08:01:38 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
This patch fixes the types of some values passed to printf in
tools/ioemu/hw/pc.c.  Without it, on i386 at least, the values printed
are wrong because the printf argument type and argument sizes do not
match.

I'm submitting this change for ioemu just in case I have to debug
ioemu-remote (the merged qemu tree) in this area again :-).

hw/pc.c generates several warnings of this kind of problem, but these
appear to be the ones which actually cause wrong output.

Ian.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>

diff -r 39c2cab9e765 tools/ioemu/hw/pc.c
--- a/tools/ioemu/hw/pc.c       Mon Jul 14 10:12:07 2008 +0100
+++ b/tools/ioemu/hw/pc.c       Tue Jul 22 15:56:31 2008 +0100
@@ -591,9 +591,9 @@ static void load_linux(const char *kerne
             "qemu: real_addr     = %#zx\n"
             "qemu: cmdline_addr  = %#zx\n"
             "qemu: prot_addr     = %#zx\n",
-            real_addr,
-            cmdline_addr,
-            prot_addr);
+            (size_t)real_addr,
+            (size_t)cmdline_addr,
+            (size_t)prot_addr);
 
     /* highest address for loading the initrd */
     if (protocol >= 0x203)
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] ioemu hvmloader erronoeous debugging prints, Ian Jackson <=