Date: Wed, 2 Feb 2011 14:59:05 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r218190 - head/sys/fs/ext2fs Message-ID: <201102021459.p12Ex5AK012578@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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--;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102021459.p12Ex5AK012578>