* [PATCH] ubifs: fix printk format warnings
@ 2008-09-17 18:09 Alexander Beregalov
2008-09-18 5:21 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Beregalov @ 2008-09-17 18:09 UTC (permalink / raw)
To: dedekind, ext-adrian.hunter, linux-mtd
fs/ubifs/dir.c:428: warning: format '%llu' expects type 'long long
unsigned int', but argument 5 has type 'long unsigned int'
fs/ubifs/debug.c:541: warning: format '%llu' expects type 'long long
unsigned int', but argument 2 has type 'long unsigned int'
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
---
fs/ubifs/debug.c | 2 +-
fs/ubifs/dir.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c
index b9cb774..d7f7645 100644
--- a/fs/ubifs/debug.c
+++ b/fs/ubifs/debug.c
@@ -538,7 +538,7 @@ void dbg_dump_node(const struct ubifs_info *c, const void *node)
printk(KERN_DEBUG "\t%d orphan inode numbers:\n", n);
for (i = 0; i < n; i++)
printk(KERN_DEBUG "\t ino %llu\n",
- le64_to_cpu(orph->inos[i]));
+ (unsigned long long)le64_to_cpu(orph->inos[i]));
break;
}
default:
diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c
index 4884f06..8561890 100644
--- a/fs/ubifs/dir.c
+++ b/fs/ubifs/dir.c
@@ -426,7 +426,7 @@ static int ubifs_readdir(struct file *file, void *dirent, filldir_t filldir)
while (1) {
dbg_gen("feed '%s', ino %llu, new f_pos %#x",
- dent->name, le64_to_cpu(dent->inum),
+ dent->name, (unsigned long long)le64_to_cpu(dent->inum),
key_hash_flash(c, &dent->key));
ubifs_assert(dent->ch.sqnum > ubifs_inode(dir)->creat_sqnum);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ubifs: fix printk format warnings
2008-09-17 18:09 [PATCH] ubifs: fix printk format warnings Alexander Beregalov
@ 2008-09-18 5:21 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2008-09-18 5:21 UTC (permalink / raw)
To: Alexander Beregalov; +Cc: linux-mtd, ext-adrian.hunter
Hi,
On Wed, 2008-09-17 at 22:09 +0400, Alexander Beregalov wrote:
> fs/ubifs/dir.c:428: warning: format '%llu' expects type 'long long
> unsigned int', but argument 5 has type 'long unsigned int'
>
> fs/ubifs/debug.c:541: warning: format '%llu' expects type 'long long
> unsigned int', but argument 2 has type 'long unsigned int'
>
>
> Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Pushed to ubifs-2.6.git, thank you.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-18 5:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-17 18:09 [PATCH] ubifs: fix printk format warnings Alexander Beregalov
2008-09-18 5:21 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox