Skip to contentSkip to conversation

ubifs: fix printk format warnings

PATCH Applied Alexander Beregalov 2 participants 2 messages Sep 17, 2008 – Sep 18, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ubifs: fix printk format warnings

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'

---

 fs/ubifs/debug.c |    2 +-
 fs/ubifs/dir.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
fs/ubifs/debug.c +1 -1
index b9cb774..d7f7645 100644
@@ -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:
fs/ubifs/dir.c +1 -1
index 4884f06..8561890 100644
@@ -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);
 
#1 lore raw

Hi,

Quoted 8 lines · Alexander Beregalov

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'

Pushed to ubifs-2.6.git, thank you.

Signature · 2 lines
Best regards,
Artem Bityutskiy (Битюцкий Артём)