From: Karel Zak Date: Sat, 1 Jan 2011 22:14:46 +0000 (+0100) Subject: libblkid: use PRId64 in PT parser X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94decb7c6090e8bfc09f4cd13add863b02ff22c4;p=util-linux libblkid: use PRId64 in PT parser Signed-off-by: Karel Zak --- diff --git a/shlibs/blkid/src/partitions/partitions.c b/shlibs/blkid/src/partitions/partitions.c index 5b34d037..fb2e015f 100644 --- a/shlibs/blkid/src/partitions/partitions.c +++ b/shlibs/blkid/src/partitions/partitions.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include "partitions.h" @@ -399,8 +400,7 @@ blkid_parttable blkid_partlist_new_parttable(blkid_partlist ls, DBG(DEBUG_LOWPROBE, printf("parts: create a new partition table " - "(%p, type=%s, offset=%llu)\n", tab, type, - (unsigned long long) offset)); + "(%p, type=%s, offset=%"PRId64")\n", tab, type, offset)); return tab; } @@ -442,9 +442,9 @@ blkid_partition blkid_partlist_add_partition(blkid_partlist ls, par->size = size; DBG(DEBUG_LOWPROBE, - printf("parts: add partition (%p start=%llu, size=%llu, table=%p)\n", - par, (unsigned long long) par->start, - (unsigned long long) par->size, tab)); + printf("parts: add partition (%p start=%" + PRId64 ", size=%" PRId64 ", table=%p)\n", + par, par->start, par->size, tab)); return par; } @@ -812,8 +812,8 @@ int blkid_probe_is_covered_by_pt(blkid_probe pr, if (par->start + par->size > (pr->size >> 9)) { DBG(DEBUG_LOWPROBE, printf("partition #%d overflows " - "device (off=%lu size=%lu)\n", - par->partno, par->start, par->size)); + "device (off=%" PRId64 " size=%" PRId64 ")\n", + par->partno, par->start, par->size)); goto done; } }