summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorgleb <gleb@FreeBSD.org>2014-12-17 07:27:19 +0000
committergleb <gleb@FreeBSD.org>2014-12-17 07:27:19 +0000
commit5c99f46b3bbc601b0b935944e170948c781a073e (patch)
tree49e07a33f717fc11a77f96d21126c8dd675b430b /sys/ufs
parent9bea39ca06cc5b3fe0c12d90363acdb8aa931771 (diff)
downloadFreeBSD-src-5c99f46b3bbc601b0b935944e170948c781a073e.zip
FreeBSD-src-5c99f46b3bbc601b0b935944e170948c781a073e.tar.gz
Adjust printf format specifiers for dev_t and ino_t in kernel.
ino_t and dev_t are about to become uint64_t. Reviewed by: kib, mckusick
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_alloc.c6
-rw-r--r--sys/ufs/ufs/ufs_lookup.c3
2 files changed, 5 insertions, 4 deletions
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c
index 36db48f..c918cd7 100644
--- a/sys/ufs/ffs/ffs_alloc.c
+++ b/sys/ufs/ffs/ffs_alloc.c
@@ -845,7 +845,7 @@ ffs_reallocblks_ufs2(ap)
*/
#ifdef DEBUG
if (prtrealloc)
- printf("realloc: ino %d, lbns %jd-%jd\n\told:", ip->i_number,
+ printf("realloc: ino %ju, lbns %jd-%jd\n\told:", (uintmax_t)ip->i_number,
(intmax_t)start_lbn, (intmax_t)end_lbn);
#endif
blkno = newblk;
@@ -1029,8 +1029,8 @@ retry:
ip = VTOI(*vpp);
if (ip->i_mode) {
dup_alloc:
- printf("mode = 0%o, inum = %lu, fs = %s\n",
- ip->i_mode, (u_long)ip->i_number, fs->fs_fsmnt);
+ printf("mode = 0%o, inum = %ju, fs = %s\n",
+ ip->i_mode, (uintmax_t)ip->i_number, fs->fs_fsmnt);
panic("ffs_valloc: dup alloc");
}
if (DIP(ip, i_blocks) && (fs->fs_flags & FS_UNCLEAN) == 0) { /* XXX */
diff --git a/sys/ufs/ufs/ufs_lookup.c b/sys/ufs/ufs/ufs_lookup.c
index 87a030e..b34ed24 100644
--- a/sys/ufs/ufs/ufs_lookup.c
+++ b/sys/ufs/ufs/ufs_lookup.c
@@ -1475,7 +1475,8 @@ ufs_checkpath(ino_t source_ino, ino_t parent_ino, struct inode *target, struct u
}
}
KASSERT(dd_ino == VTOI(vp1)->i_number,
- ("directory %d reparented\n", VTOI(vp1)->i_number));
+ ("directory %ju reparented\n",
+ (uintmax_t)VTOI(vp1)->i_number));
if (vp != tvp)
vput(vp);
vp = vp1;
OpenPOWER on IntegriCloud