summaryrefslogtreecommitdiff
path: root/sys/ufs/ext2fs
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2011-09-18 23:20:29 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2011-09-18 23:20:29 +0000
commit055ddadf7e9c1ef7f824b5d7aa7c127cab442832 (patch)
treed2d50b509e97cea24664754ccc10c241d9a1cf40 /sys/ufs/ext2fs
parent9307b5720a5e9ac8b2edc0667194b9d47a2e567a (diff)
Fix more printf format string bugs in sys/ufs.
ok miod
Diffstat (limited to 'sys/ufs/ext2fs')
-rw-r--r--sys/ufs/ext2fs/ext2fs_alloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_alloc.c b/sys/ufs/ext2fs/ext2fs_alloc.c
index 68fe1da828c..a0937ec891f 100644
--- a/sys/ufs/ext2fs/ext2fs_alloc.c
+++ b/sys/ufs/ext2fs/ext2fs_alloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_alloc.c,v 1.26 2011/07/04 04:30:41 tedu Exp $ */
+/* $OpenBSD: ext2fs_alloc.c,v 1.27 2011/09/18 23:20:28 bluhm Exp $ */
/* $NetBSD: ext2fs_alloc.c,v 1.10 2001/07/05 08:38:27 toshii Exp $ */
/*
@@ -162,7 +162,7 @@ ext2fs_inode_alloc(struct inode *pip, mode_t mode, struct ucred *cred,
}
ip = VTOI(*vpp);
if (ip->i_e2fs_mode && ip->i_e2fs_nlink != 0) {
- printf("mode = 0%o, nlinks %d, inum = %d, fs = %s\n",
+ printf("mode = 0%o, nlinks %u, inum = %u, fs = %s\n",
ip->i_e2fs_mode, ip->i_e2fs_nlink, ip->i_number, fs->e2fs_fsmnt);
panic("ext2fs_valloc: dup alloc");
}
@@ -474,7 +474,7 @@ ext2fs_blkfree(struct inode *ip, int32_t bno)
fs = ip->i_e2fs;
cg = dtog(fs, bno);
if ((u_int)bno >= fs->e2fs.e2fs_bcount) {
- printf("bad block %d, ino %d\n", bno, ip->i_number);
+ printf("bad block %d, ino %u\n", bno, ip->i_number);
ext2fs_fserr(fs, ip->i_e2fs_uid, "bad block");
return;
}