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: fix compiler warning.

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] ioemu: fix compiler warning.
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Fri, 29 May 2009 11:08:39 +0900
Cc: Ian.Jackson@xxxxxxxxxxxxx
Delivery-date: Thu, 28 May 2009 19:09:09 -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
User-agent: Mutt/1.5.6i
This patch removes the following warning for x86-32 by PRIx64.

pass-through.c: In function 'pt_iomul_ioport_write':
pass-through.c:1140: warning: format '%lx' expects type 'long unsigned int', 
but argument 9 has type 'uint64_t'
pass-through.c: In function 'pt_iomul_ioport_read':
pass-through.c:1166: warning: format '%lx' expects type 'long unsigned int', 
but argument 9 has type 'uint64_t'

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 hw/pass-through.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/pass-through.c b/hw/pass-through.c
index bd3388a..6ee9799 100644
--- a/hw/pass-through.c
+++ b/hw/pass-through.c
@@ -1137,7 +1137,7 @@ static void pt_iomul_ioport_write(struct pt_dev 
*assigned_device,
     out.size = size;
     out.value = val;
     if ( ioctl(assigned_device->fd, PCI_IOMUL_OUT, &out) )
-        PT_LOG("error: %s: %s addr 0x%x size %d bar %d offset 0x%lx\n",
+        PT_LOG("error: %s: %s addr 0x%x size %d bar %d offset 0x%"PRIx64"\n",
                __func__, strerror(errno), addr, size, bar, offset);
 }
 
@@ -1163,7 +1163,7 @@ static uint32_t pt_iomul_ioport_read(struct pt_dev 
*assigned_device,
     in.size = size;
     if ( ioctl(assigned_device->fd, PCI_IOMUL_IN, &in) )
     {
-        PT_LOG("error: %s: %s addr 0x%x size %d bar %d offset 0x%lx\n",
+        PT_LOG("error: %s: %s addr 0x%x size %d bar %d offset 0x%"PRIx64"\n",
                __func__, strerror(errno), addr, size, bar, offset);
         in.value = -1;
     }
-- 
1.6.0.2



-- 
yamahata

_______________________________________________
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: fix compiler warning., Isaku Yamahata <=