diff options
author | Zbigniew JÄdrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-01-25 16:30:19 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-01-25 16:30:19 -0500 |
commit | d98458c3c486f80dbf43287fb6b285d4e3806444 (patch) | |
tree | f9767be2886d7d338af2ed15e887dc05a0de1ce7 /src/udev/udevadm-info.c | |
parent | 3bbbd500c9ae7afe80540e95d8b3dfc15e20c8e1 (diff) |
Assorted format fixes
Types used for pids and uids in various interfaces are unpredictable.
Too bad.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev/udevadm-info.c')
-rw-r--r-- | src/udev/udevadm-info.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/udev/udevadm-info.c b/src/udev/udevadm-info.c index c845df7a23..48c0e79406 100644 --- a/src/udev/udevadm-info.c +++ b/src/udev/udevadm-info.c @@ -163,12 +163,12 @@ static int stat_device(const char *name, bool export, const char *prefix) { if (export) { if (prefix == NULL) prefix = "INFO_"; - printf("%sMAJOR=%d\n" - "%sMINOR=%d\n", + printf("%sMAJOR=%u\n" + "%sMINOR=%u\n", prefix, major(statbuf.st_dev), prefix, minor(statbuf.st_dev)); } else - printf("%d:%d\n", major(statbuf.st_dev), minor(statbuf.st_dev)); + printf("%u:%u\n", major(statbuf.st_dev), minor(statbuf.st_dev)); return 0; } |