From: Randy Dunlap <randy.dunlap@oracle•com>
To: linux-fsdevel@vger•kernel.org, linux-next@vger•kernel.org
Cc: mfasheh@suse•com, joel.becker@oracle•com,
ocfs2-devel@oss•oracle.com, akpm <akpm@linux-foundation•org>
Subject: [PATCH -next] ocfs2: fix printk format warnings with OCFS2_FS_STATS=n
Date: Wed, 28 May 2008 14:41:00 -0700 [thread overview]
Message-ID: <20080528144100.13ec8c6a.randy.dunlap@oracle.com> (raw)
From: Randy Dunlap <randy.dunlap@oracle•com>
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>
---
fs/ocfs2/dlmglue.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--- linux-next-20080528.orig/fs/ocfs2/dlmglue.c
+++ linux-next-20080528/fs/ocfs2/dlmglue.c
@@ -2592,12 +2592,12 @@ static int ocfs2_dlm_seq_show(struct seq
# 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)
next reply other threads:[~2008-05-28 21:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-28 21:41 Randy Dunlap [this message]
2008-05-28 21:48 ` [PATCH -next] ocfs2: fix printk format warnings with OCFS2_FS_STATS=n Mark Fasheh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080528144100.13ec8c6a.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle$(echo .)com \
--cc=akpm@linux-foundation$(echo .)org \
--cc=joel.becker@oracle$(echo .)com \
--cc=linux-fsdevel@vger$(echo .)kernel.org \
--cc=linux-next@vger$(echo .)kernel.org \
--cc=mfasheh@suse$(echo .)com \
--cc=ocfs2-devel@oss$(echo .)oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox