* [PATCH] omfs: fix warning
@ 2008-08-02 8:07 Alexander Beregalov
2008-08-02 13:24 ` Bob Copeland
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Beregalov @ 2008-08-02 8:07 UTC (permalink / raw)
To: me, linux-karma-devel, linux-kernel
From: Alexander Beregalov <a.beregalov@gmail.com>
omfs: fix warnings
fs/omfs/inode.c:495: warning: format '%llx' expects type 'long long
unsigned int', but argument 2 has type 'u64'
fs/omfs/inode.c:495: warning: format '%llx' expects type 'long
long unsigned int', but argument 3 has type '__be64'
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Cc: Bob Copeland <me@bobcopeland.com>
---
fs/omfs/inode.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c
index d865f55..a95fe59 100644
--- a/fs/omfs/inode.c
+++ b/fs/omfs/inode.c
@@ -492,7 +492,8 @@ static int omfs_fill_super(struct super_block *sb, void *data, int silent)
if (sbi->s_num_blocks != be64_to_cpu(omfs_rb->r_num_blocks)) {
printk(KERN_ERR "omfs: block count discrepancy between "
"super and root blocks (%llx, %llx)\n",
- sbi->s_num_blocks, be64_to_cpu(omfs_rb->r_num_blocks));
+ (unsigned long long)sbi->s_num_blocks,
+ (unsigned long long)be64_to_cpu(omfs_rb->r_num_blocks));
goto out_brelse_bh2;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] omfs: fix warning
2008-08-02 8:07 [PATCH] omfs: fix warning Alexander Beregalov
@ 2008-08-02 13:24 ` Bob Copeland
0 siblings, 0 replies; 2+ messages in thread
From: Bob Copeland @ 2008-08-02 13:24 UTC (permalink / raw)
To: Alexander Beregalov; +Cc: linux-karma-devel, linux-kernel, akpm
On Sat, Aug 02, 2008 at 12:07:25PM +0400, Alexander Beregalov wrote:
> From: Alexander Beregalov <a.beregalov@gmail.com>
>
> omfs: fix warnings
>
> fs/omfs/inode.c:495: warning: format '%llx' expects type 'long long
> unsigned int', but argument 2 has type 'u64'
> fs/omfs/inode.c:495: warning: format '%llx' expects type 'long
> long unsigned int', but argument 3 has type '__be64'
>
> Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
> Cc: Bob Copeland <me@bobcopeland.com>
Thanks!
Acked-by: Bob Copeland <me@bobcopeland.com>
(And I'm downloading cross compilers as I type this.)
Andrew, should I continue to send omfs patches through you, or do I need
to publish a git repo?
> "super and root blocks (%llx, %llx)\n",
> - sbi->s_num_blocks, be64_to_cpu(omfs_rb->r_num_blocks));
> + (unsigned long long)sbi->s_num_blocks,
> + (unsigned long long)be64_to_cpu(omfs_rb->r_num_blocks));
> goto out_brelse_bh2;
--
Bob Copeland %% www.bobcopeland.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-02 13:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-02 8:07 [PATCH] omfs: fix warning Alexander Beregalov
2008-08-02 13:24 ` Bob Copeland
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.