From 8e42a40607d4f4c6484d0185634dc68c9b0b1c4a Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 2 Feb 2011 14:59:05 +0000 Subject: [PATCH] Fix build with DIAGNOSTIC enabled. Pointy hat to: jhb --- sys/fs/ext2fs/ext2_alloc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/fs/ext2fs/ext2_alloc.c b/sys/fs/ext2fs/ext2_alloc.c index 72f6ff8dc86c..baab4a5677d1 100644 --- a/sys/fs/ext2fs/ext2_alloc.c +++ b/sys/fs/ext2fs/ext2_alloc.c @@ -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--;