]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commitdiff
passthrough: fix %lx compiler warning
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 29 May 2009 14:42:23 +0000 (15:42 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 29 May 2009 14:42:23 +0000 (15:42 +0100)
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@valinux.co.jp>
hw/pass-through.c

index 0960360d759f3dee028691bffa0cafe58978f507..2af2a1ce4d8e12b6a60fdbc92a3fd4f35b5196b9 100644 (file)
@@ -1139,7 +1139,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);
 }
 
@@ -1165,7 +1165,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;
     }