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] [TOOLS] lomount: Fix printf formats insid

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [TOOLS] lomount: Fix printf formats inside #ifdef DEBUG.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 02 Aug 2006 10:40:21 +0000
Delivery-date: Wed, 02 Aug 2006 03:43:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID 9632ececc8f422f5d14f77ef5ac44689dbaaf7b8
# Parent  637e648263424e49381c6f39a6c946c3c1bf4659
[TOOLS] lomount: Fix printf formats inside #ifdef DEBUG.

Signed-off-by: Tristan Gingold <tristan.gingold@xxxxxxxx>
---
 tools/misc/lomount/lomount.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -r 637e64826342 -r 9632ececc8f4 tools/misc/lomount/lomount.c
--- a/tools/misc/lomount/lomount.c      Wed Aug 02 10:08:33 2006 +0100
+++ b/tools/misc/lomount/lomount.c      Wed Aug 02 10:13:30 2006 +0100
@@ -158,7 +158,7 @@ load_gpt (const char *diskimage, struct 
        entry_size = read_le4 (&data[84]);
 
 #ifdef DEBUG
-       fprintf(stderr, "lba entries: %lu, nbr_part: %u, entry_size: %lu\n",
+       fprintf(stderr, "lba entries: %llu, nbr_part: %u, entry_size: %lu\n",
                entries_lba, nbr_part, entry_size);
 #endif
        part = malloc (nbr_part * sizeof (struct pentry));
@@ -404,7 +404,7 @@ int main(int argc, char ** argv)
           value is off by (larger than) a value less than one. */
        sec = 512; /* TODO: calculate real sector size */
 #ifdef DEBUG
-       printf("sec: %d\n", sec);
+       printf("sec: %llu\n", sec);
 #endif
        if (partition > nbr_part)
        {
@@ -421,7 +421,7 @@ int main(int argc, char ** argv)
 
        pnum = sec * num;
 #ifdef DEBUG
-       printf("offset = %d\n", pnum);
+       printf("offset = %llu\n", pnum);
 #endif
        snprintf(buf, sizeof(buf), "mount -oloop,offset=%lld %s %s",
                 pnum, diskimage, argv2);

_______________________________________________
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] [TOOLS] lomount: Fix printf formats inside #ifdef DEBUG., Xen patchbot-unstable <=