summaryrefslogtreecommitdiff
path: root/extras/volume_id/vol_id.c
diff options
context:
space:
mode:
Diffstat (limited to 'extras/volume_id/vol_id.c')
-rw-r--r--extras/volume_id/vol_id.c3
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 */