diff options
author | gleb <gleb@FreeBSD.org> | 2014-12-17 07:10:48 +0000 |
---|---|---|
committer | gleb <gleb@FreeBSD.org> | 2014-12-17 07:10:48 +0000 |
commit | 9bea39ca06cc5b3fe0c12d90363acdb8aa931771 (patch) | |
tree | 4e636d235a261a7ff1fda626cb5f314811a6bfe6 /usr.bin/killall | |
parent | a526ff1d89fbec90ea71c963980fe0dfc70c18e6 (diff) | |
download | FreeBSD-src-9bea39ca06cc5b3fe0c12d90363acdb8aa931771.zip FreeBSD-src-9bea39ca06cc5b3fe0c12d90363acdb8aa931771.tar.gz |
Adjust printf format specifiers for dev_t and ino_t in user space.
ino_t and dev_t are about to become uint64_t.
Reviewed by: kib, mckusick
Diffstat (limited to 'usr.bin/killall')
-rw-r--r-- | usr.bin/killall/killall.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/killall/killall.c b/usr.bin/killall/killall.c index b171630..cdb62da 100644 --- a/usr.bin/killall/killall.c +++ b/usr.bin/killall/killall.c @@ -37,6 +37,7 @@ __FBSDID("$FreeBSD$"); #include <fcntl.h> #include <dirent.h> #include <jail.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -262,7 +263,7 @@ main(int ac, char **av) errx(1, "%s: not a character device", buf); tdev = sb.st_rdev; if (dflag) - printf("ttydev:0x%x\n", tdev); + printf("ttydev:0x%jx\n", (uintmax_t)tdev); } if (user) { uid = strtol(user, &ep, 10); @@ -410,8 +411,9 @@ main(int ac, char **av) if (matched == 0) continue; if (dflag) - printf("sig:%d, cmd:%s, pid:%d, dev:0x%x uid:%d\n", sig, - thiscmd, thispid, thistdev, thisuid); + printf("sig:%d, cmd:%s, pid:%d, dev:0x%jx uid:%d\n", + sig, thiscmd, thispid, (uintmax_t)thistdev, + thisuid); if (vflag || sflag) printf("kill -%s %d\n", sys_signame[sig], thispid); |