svn commit: r187397 - head/sys/gnu/fs/ext2fs

Stanislav Sedov stas at FreeBSD.org
Sun Jan 18 07:10:48 PST 2009


Author: stas
Date: Sun Jan 18 15:10:46 2009
New Revision: 187397
URL: http://svn.freebsd.org/changeset/base/187397

Log:
  - Eliminate warnings in debug print macros by explicitly converting all
    field to unsigned long.

Modified:
  head/sys/gnu/fs/ext2fs/ext2_vfsops.c

Modified: head/sys/gnu/fs/ext2fs/ext2_vfsops.c
==============================================================================
--- head/sys/gnu/fs/ext2fs/ext2_vfsops.c	Sun Jan 18 14:54:46 2009	(r187396)
+++ head/sys/gnu/fs/ext2fs/ext2_vfsops.c	Sun Jan 18 15:10:46 2009	(r187397)
@@ -400,7 +400,7 @@ static int compute_sb_data(devvp, es, fs
 #if 1
 #define V(v)
 #else
-#define V(v)  printf(#v"= %d\n", fs->v);
+#define V(v)  printf(#v"= %lu\n", (unsigned long)fs->v);
 #endif
 
     fs->s_blocksize = EXT2_MIN_BLOCK_SIZE << es->s_log_block_size;


More information about the svn-src-head mailing list