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/id | |
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/id')
-rw-r--r-- | usr.bin/id/id.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/id/id.c b/usr.bin/id/id.c index a49fd75..345e2a6 100644 --- a/usr.bin/id/id.c +++ b/usr.bin/id/id.c @@ -52,6 +52,7 @@ __FBSDID("$FreeBSD$"); #include <errno.h> #include <grp.h> #include <pwd.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -346,14 +347,14 @@ auditid(void) "mask.success=0x%08x\n" "mask.failure=0x%08x\n" "asid=%d\n" - "termid_addr.port=0x%08x\n" + "termid_addr.port=0x%08jx\n" "termid_addr.addr[0]=0x%08x\n" "termid_addr.addr[1]=0x%08x\n" "termid_addr.addr[2]=0x%08x\n" "termid_addr.addr[3]=0x%08x\n", ainfo_addr.ai_auid, ainfo_addr.ai_mask.am_success, ainfo_addr.ai_mask.am_failure, ainfo_addr.ai_asid, - ainfo_addr.ai_termid.at_port, + (uintmax_t)ainfo_addr.ai_termid.at_port, ainfo_addr.ai_termid.at_addr[0], ainfo_addr.ai_termid.at_addr[1], ainfo_addr.ai_termid.at_addr[2], @@ -363,11 +364,11 @@ auditid(void) "mask.success=0x%08x\n" "mask.failure=0x%08x\n" "asid=%d\n" - "termid.port=0x%08x\n" + "termid.port=0x%08jx\n" "termid.machine=0x%08x\n", auditinfo.ai_auid, auditinfo.ai_mask.am_success, auditinfo.ai_mask.am_failure, - auditinfo.ai_asid, auditinfo.ai_termid.port, + auditinfo.ai_asid, (uintmax_t)auditinfo.ai_termid.port, auditinfo.ai_termid.machine); } } |