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-changelog

[Xen-changelog] [xen-unstable] blktap2: Fix some printf format specifier

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] blktap2: Fix some printf format specifiers (PRIu64).
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 26 Jun 2009 08:56:16 -0700
Delivery-date: Fri, 26 Jun 2009 09:04:32 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1245838318 -3600
# Node ID 7750bae3d042c38ba8f95495c106bc40f0e7e3ad
# Parent  81edfffb3aff92e03acd5ed68477763eb438c9ae
blktap2: Fix some printf format specifiers (PRIu64).

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/blktap2/drivers/block-ram.c |    4 ++--
 tools/blktap2/drivers/block-vhd.c |    3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff -r 81edfffb3aff -r 7750bae3d042 tools/blktap2/drivers/block-ram.c
--- a/tools/blktap2/drivers/block-ram.c Wed Jun 24 11:05:22 2009 +0100
+++ b/tools/blktap2/drivers/block-ram.c Wed Jun 24 11:11:58 2009 +0100
@@ -101,7 +101,7 @@ static int get_image_info(int fd, td_dis
        disksector_size = info->sector_size;
        disksize        = info->size;
        diskinfo        = info->info;
-       DPRINTF("Image sector_size: \n\t[%lu]\n",
+       DPRINTF("Image sector_size: \n\t[%"PRIu64"]\n",
                info->sector_size);
 
        return 0;
@@ -126,7 +126,7 @@ int tdram_open (td_driver_t *driver, con
                        "sector_shift [%llu]\n",
                        (long long unsigned)(driver->info.size << SECTOR_SHIFT),
                        (long long unsigned)driver->info.size);
-               DPRINTF("Image sector_size: \n\t[%lu]\n",
+               DPRINTF("Image sector_size: \n\t[%"PRIu64"]\n",
                        driver->info.sector_size);
 
                prv->fd = -1;
diff -r 81edfffb3aff -r 7750bae3d042 tools/blktap2/drivers/block-vhd.c
--- a/tools/blktap2/drivers/block-vhd.c Wed Jun 24 11:05:22 2009 +0100
+++ b/tools/blktap2/drivers/block-vhd.c Wed Jun 24 11:11:58 2009 +0100
@@ -649,7 +649,8 @@ __vhd_open(td_driver_t *driver, const ch
        driver->info.sector_size = VHD_SECTOR_SIZE;
        driver->info.info        = 0;
 
-        DBG(TLOG_INFO, "vhd_open: done (sz:%"PRIu64", sct:%lu, inf:%u)\n",
+        DBG(TLOG_INFO, "vhd_open: done (sz:%"PRIu64", sct:%"PRIu64
+            ", inf:%u)\n",
            driver->info.size, driver->info.sector_size, driver->info.info);
 
        if (test_vhd_flag(flags, VHD_FLAG_OPEN_STRICT) && 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] blktap2: Fix some printf format specifiers (PRIu64)., Xen patchbot-unstable <=