diff options
| author | Gleb Kurtsou <gleb@FreeBSD.org> | 2014-12-17 07:10:48 +0000 |
|---|---|---|
| committer | Gleb Kurtsou <gleb@FreeBSD.org> | 2014-12-17 07:10:48 +0000 |
| commit | 9b3370541180604458bbc768f3fa6839ed4d938e (patch) | |
| tree | 4e636d235a261a7ff1fda626cb5f314811a6bfe6 /usr.bin/killall | |
| parent | 52df462f7f7b2312c7f25d8ff9b19e6b8d0c4648 (diff) | |
Notes
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 b171630d6b9b0..cdb62da6e4b94 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); |
