svn commit: r231669 - head/sys/fs/tmpfs
Tijl Coosemans
tijl at FreeBSD.org
Tue Feb 14 11:24:25 UTC 2012
Author: tijl
Date: Tue Feb 14 11:24:24 2012
New Revision: 231669
URL: http://svn.freebsd.org/changeset/base/231669
Log:
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.
Modified:
head/sys/fs/tmpfs/tmpfs_vnops.c
Modified: head/sys/fs/tmpfs/tmpfs_vnops.c
==============================================================================
--- head/sys/fs/tmpfs/tmpfs_vnops.c Tue Feb 14 11:16:13 2012 (r231668)
+++ head/sys/fs/tmpfs/tmpfs_vnops.c Tue Feb 14 11:24:24 2012 (r231669)
@@ -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);
More information about the svn-src-head
mailing list