summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-30 17:12:39 +0000
committerbde <bde@FreeBSD.org>1998-07-30 17:12:39 +0000
commitd00cccd49fea9ae2af8d4289c3a2e668c7dff3c5 (patch)
tree5919352efc9f58f3e184cf47564609afb6da728d
parent3016360e656b6fbf057c9de7d2c5d548e3bbd6a5 (diff)
downloadFreeBSD-src-d00cccd49fea9ae2af8d4289c3a2e668c7dff3c5.zip
FreeBSD-src-d00cccd49fea9ae2af8d4289c3a2e668c7dff3c5.tar.gz
Fixed printf format errors.
-rw-r--r--sys/gnu/ext2fs/ext2_alloc.c4
-rw-r--r--sys/gnu/fs/ext2fs/ext2_alloc.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/gnu/ext2fs/ext2_alloc.c b/sys/gnu/ext2fs/ext2_alloc.c
index a60f97a..c47f597 100644
--- a/sys/gnu/ext2fs/ext2_alloc.c
+++ b/sys/gnu/ext2fs/ext2_alloc.c
@@ -113,8 +113,8 @@ ext2_alloc(ip, lbn, bpref, size, cred, bnp)
fs = ip->i_e2fs;
#if DIAGNOSTIC
if ((u_int)size > fs->s_blocksize || blkoff(fs, size) != 0) {
- printf("dev = 0x%x, bsize = %d, size = %d, fs = %s\n",
- ip->i_dev, fs->s_blocksize, size, fs->fs_fsmnt);
+ printf("dev = 0x%lx, bsize = %lu, size = %d, fs = %s\n",
+ (u_long)ip->i_dev, fs->s_blocksize, size, fs->fs_fsmnt);
panic("ext2_alloc: bad size");
}
if (cred == NOCRED)
diff --git a/sys/gnu/fs/ext2fs/ext2_alloc.c b/sys/gnu/fs/ext2fs/ext2_alloc.c
index a60f97a..c47f597 100644
--- a/sys/gnu/fs/ext2fs/ext2_alloc.c
+++ b/sys/gnu/fs/ext2fs/ext2_alloc.c
@@ -113,8 +113,8 @@ ext2_alloc(ip, lbn, bpref, size, cred, bnp)
fs = ip->i_e2fs;
#if DIAGNOSTIC
if ((u_int)size > fs->s_blocksize || blkoff(fs, size) != 0) {
- printf("dev = 0x%x, bsize = %d, size = %d, fs = %s\n",
- ip->i_dev, fs->s_blocksize, size, fs->fs_fsmnt);
+ printf("dev = 0x%lx, bsize = %lu, size = %d, fs = %s\n",
+ (u_long)ip->i_dev, fs->s_blocksize, size, fs->fs_fsmnt);
panic("ext2_alloc: bad size");
}
if (cred == NOCRED)
OpenPOWER on IntegriCloud