Skip to contentSkip to conversation

ubifs:Fixed print foramt mismatch in ubifs

PATCH New Fangping Liang 1 participant 1 message Dec 8, 2020

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

PATCH 1/1 ubifs:Fixed print foramt mismatch in ubifs

fs/ubifs/super.c: function mount_ubifs:
the format specifier "lld" need arg type "long long", but the according arg "old_idx_sz" has type "unsigned long long"

---
 fs/ubifs/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ubifs/super.c +1 -1
index cb3acfb7dd1f..06612ca8a291 100644
@@ -1572,7 +1572,7 @@ static int mount_ubifs(struct ubifs_info *c)
 	dbg_gen("main area LEBs:      %d (%d - %d)",
 		c->main_lebs, c->main_first, c->leb_cnt - 1);
 	dbg_gen("index LEBs:          %d", c->lst.idx_lebs);
-	dbg_gen("total index bytes:   %lld (%lld KiB, %lld MiB)",
+	dbg_gen("total index bytes:   %llu (%llu KiB, %llu MiB)",
 		c->bi.old_idx_sz, c->bi.old_idx_sz >> 10,
 		c->bi.old_idx_sz >> 20);
 	dbg_gen("key hash type:       %d", c->key_hash_type);
Signature · 1 line
2.12.3