]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ocfs2: fix printk format warnings with OCFS2_FS_STATS=n
authorRandy Dunlap <randy.dunlap@oracle.com>
Wed, 28 May 2008 21:41:00 +0000 (14:41 -0700)
committerMark Fasheh <mfasheh@suse.com>
Mon, 14 Jul 2008 20:57:14 +0000 (13:57 -0700)
Fix printk format warnings when OCFS2_FS_STATS=n:

linux-next-20080528/fs/ocfs2/dlmglue.c: In function 'ocfs2_dlm_seq_show':
linux-next-20080528/fs/ocfs2/dlmglue.c:2623: warning: format '%llu' expects type 'long long unsigned int', but argument 3 has type 'int'
linux-next-20080528/fs/ocfs2/dlmglue.c:2623: warning: format '%llu' expects type 'long long unsigned int', but argument 4 has type 'int'
linux-next-20080528/fs/ocfs2/dlmglue.c:2623: warning: format '%llu' expects type 'long long unsigned int', but argument 7 has type 'int'
linux-next-20080528/fs/ocfs2/dlmglue.c:2623: warning: format '%llu' expects type 'long long unsigned int', but argument 8 has type 'int'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/dlmglue.c

index 80537b769e4172d60836e6fc90e3d5589e72f8d5..eae3d643a5e4316332b23cabb6f3d7edae4b7a5e 100644 (file)
@@ -2592,12 +2592,12 @@ static int ocfs2_dlm_seq_show(struct seq_file *m, void *v)
 # define lock_max_exmode(_l)           (_l)->l_lock_max_exmode
 # define lock_refresh(_l)              (_l)->l_lock_refresh
 #else
-# define lock_num_prmode(_l)           (0)
-# define lock_num_exmode(_l)           (0)
+# define lock_num_prmode(_l)           (0ULL)
+# define lock_num_exmode(_l)           (0ULL)
 # define lock_num_prmode_failed(_l)    (0)
 # define lock_num_exmode_failed(_l)    (0)
-# define lock_total_prmode(_l)         (0)
-# define lock_total_exmode(_l)         (0)
+# define lock_total_prmode(_l)         (0ULL)
+# define lock_total_exmode(_l)         (0ULL)
 # define lock_max_prmode(_l)           (0)
 # define lock_max_exmode(_l)           (0)
 # define lock_refresh(_l)              (0)