]> err.no Git - util-linux/commitdiff
libblkid: fix display of device size
authorKarel Zak <kzak@redhat.com>
Wed, 10 Mar 2010 10:08:01 +0000 (11:08 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 10 Mar 2010 10:53:46 +0000 (11:53 +0100)
blkid_loff_t is int64 so use %jd not %zd in debug

Reported-by: Pascal Terjan <pterjan@mandriva.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/probe.c

index e78458162cad4899be4a1f6e53477dd057385f05..b245d43b3379fdf981f21f566375f67ce33be8b9 100644 (file)
@@ -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))