diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-03 18:24:04 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-03 18:24:04 +0200 |
commit | 0565a00a4cfdabd325bf2e117620d5f15dd46cda (patch) | |
tree | 18501a09ee2253777b85ff59451419b83aca96e4 /extras/volume_id/vol_id.c | |
parent | 99370c21521bca6e747f6be209e5c28f89de9838 (diff) |
volume_id: use PRIu64i, PRIx64 macros
Diffstat (limited to 'extras/volume_id/vol_id.c')
-rw-r--r-- | extras/volume_id/vol_id.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extras/volume_id/vol_id.c b/extras/volume_id/vol_id.c index b153bc5410..b4db5adcd8 100644 --- a/extras/volume_id/vol_id.c +++ b/extras/volume_id/vol_id.c @@ -31,6 +31,7 @@ #include <grp.h> #include <getopt.h> #include <fcntl.h> +#include <inttypes.h> #include <sys/ioctl.h> #include "../../udev/udev.h" @@ -247,7 +248,7 @@ int main(int argc, char *argv[]) if (size == 0) { if (ioctl(fd, BLKGETSIZE64, &size) != 0) size = 0; - info(udev_ctx, "BLKGETSIZE64=%llu (%lluGB)\n", (unsigned long long)size, (unsigned long long)size >> 30); + info(udev_ctx, "BLKGETSIZE64=%" PRIu64 " (%" PRIu64 "GB)\n", size, size >> 30); } /* try to drop all privileges before reading disk content */ |