Fixed printf format errors.

This commit is contained in:
Bruce Evans 1998-07-30 17:12:39 +00:00
parent 483de21480
commit 85badd7eba
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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)