diff options
author | tijl <tijl@FreeBSD.org> | 2012-02-14 11:24:24 +0000 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2012-02-14 11:24:24 +0000 |
commit | fec991ff0a2f7e8a6b00e17e11cb33dda126e46b (patch) | |
tree | 127882b3a2e55e04e2aa6aaba94addec39fa2bd5 | |
parent | 5abebddb436aac4d1f396c82a98743aa0a774aa6 (diff) | |
download | FreeBSD-src-fec991ff0a2f7e8a6b00e17e11cb33dda126e46b.zip FreeBSD-src-fec991ff0a2f7e8a6b00e17e11cb33dda126e46b.tar.gz |
Replace PRIdMAX with "jd" in a printf call. Cast the corresponding value to
intmax_t instead of uintmax_t, because the original type is off_t.
-rw-r--r-- | sys/fs/tmpfs/tmpfs_vnops.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c index 3f1482e..93fea8b 100644 --- a/sys/fs/tmpfs/tmpfs_vnops.c +++ b/sys/fs/tmpfs/tmpfs_vnops.c @@ -54,8 +54,6 @@ __FBSDID("$FreeBSD$"); #include <vm/vm_page.h> #include <vm/vm_pager.h> -#include <machine/_inttypes.h> - #include <fs/fifofs/fifo.h> #include <fs/tmpfs/tmpfs_vnops.h> #include <fs/tmpfs/tmpfs.h> @@ -1471,10 +1469,9 @@ tmpfs_print(struct vop_print_args *v) printf("tag VT_TMPFS, tmpfs_node %p, flags 0x%x, links %d\n", node, node->tn_flags, node->tn_links); - printf("\tmode 0%o, owner %d, group %d, size %" PRIdMAX - ", status 0x%x\n", + printf("\tmode 0%o, owner %d, group %d, size %jd, status 0x%x\n", node->tn_mode, node->tn_uid, node->tn_gid, - (uintmax_t)node->tn_size, node->tn_status); + (intmax_t)node->tn_size, node->tn_status); if (vp->v_type == VFIFO) fifo_printinfo(vp); |