svn commit: r218190 - head/sys/fs/ext2fs
John Baldwin
jhb at FreeBSD.org
Wed Feb 2 14:59:05 UTC 2011
Author: jhb
Date: Wed Feb 2 14:59:05 2011
New Revision: 218190
URL: http://svn.freebsd.org/changeset/base/218190
Log:
Fix build with DIAGNOSTIC enabled.
Pointy hat to: jhb
Modified:
head/sys/fs/ext2fs/ext2_alloc.c
Modified: head/sys/fs/ext2fs/ext2_alloc.c
==============================================================================
--- head/sys/fs/ext2fs/ext2_alloc.c Wed Feb 2 14:41:32 2011 (r218189)
+++ head/sys/fs/ext2fs/ext2_alloc.c Wed Feb 2 14:59:05 2011 (r218190)
@@ -730,13 +730,13 @@ retry:
}
gotit:
#ifdef DIAGNOSTIC
- if (isset(bbp, (daddr_t)bno)) {
- printf("ext2fs_alloccgblk: cg=%d bno=%d fs=%s\n",
- cg, bno, fs->e2fs_fsmnt);
+ if (isset(bbp, bno)) {
+ printf("ext2fs_alloccgblk: cg=%d bno=%jd fs=%s\n",
+ cg, (intmax_t)bno, fs->e2fs_fsmnt);
panic("ext2fs_alloccg: dup alloc");
}
#endif
- setbit(bbp, (daddr_t)bno);
+ setbit(bbp, bno);
EXT2_LOCK(ump);
fs->e2fs->e2fs_fbcount--;
fs->e2fs_gd[cg].ext2bgd_nbfree--;
More information about the svn-src-all
mailing list