[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [TOOLS] lomount: Fix printf formats inside #ifdef DEBUG.



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.