From: Karel Zak Date: Wed, 10 Mar 2010 10:08:01 +0000 (+0100) Subject: libblkid: fix display of device size X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be21abb8a6e480cec2f4fbd454a90e59c10e85bc;p=util-linux libblkid: fix display of device size blkid_loff_t is int64 so use %jd not %zd in debug Reported-by: Pascal Terjan Signed-off-by: Karel Zak --- diff --git a/shlibs/blkid/src/probe.c b/shlibs/blkid/src/probe.c index e7845816..b245d43b 100644 --- a/shlibs/blkid/src/probe.c +++ b/shlibs/blkid/src/probe.c @@ -608,7 +608,7 @@ int blkid_probe_set_device(blkid_probe pr, int fd, pr->size -= pr->off; } - DBG(DEBUG_LOWPROBE, printf("ready for low-probing, offset=%zd, size=%zd\n", + DBG(DEBUG_LOWPROBE, printf("ready for low-probing, offset=%jd, size=%jd\n", pr->off, pr->size)); if (pr->size <= 1440 * 1024 && !S_ISCHR(pr->mode))