Skip to contentSkip to conversation

UBIFS: cosmetic: correct mount message

PATCH In review Richard Genoud 2 participants 2 messages Apr 2, 2013 – May 10, 2013

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

PATCH 1/1 UBIFS: cosmetic: correct mount message

When mounting an UBIFS R/W volume, we have the message:
UBIFS: mounted UBI device 0, volume 1, name "rootfs"(null) With this patch, we'll have:
UBIFS: mounted UBI device 0, volume 1, name "rootfs" Which is, I think, what was intended.

---
 fs/ubifs/super.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ubifs/super.c +1 -1
index ac838b8..d03ead8 100644
@@ -1412,7 +1412,7 @@ static int mount_ubifs(struct ubifs_info *c)
 
 	ubifs_msg("mounted UBI device %d, volume %d, name \"%s\"%s",
 		  c->vi.ubi_num, c->vi.vol_id, c->vi.name,
-		  c->ro_mount ? ", R/O mode" : NULL);
+		  c->ro_mount ? ", R/O mode" : "");
 	x = (long long)c->main_lebs * c->leb_size;
 	y = (long long)c->log_lebs * c->leb_size + c->max_bud_bytes;
 	ubifs_msg("LEB size: %d bytes (%d KiB), min./max. I/O unit sizes: %d bytes/%d bytes",
Signature · 1 line
1.7.2.5
#1 lore raw
Quoted 7 lines · Richard Genoud

When mounting an UBIFS R/W volume, we have the message:
UBIFS: mounted UBI device 0, volume 1, name "rootfs"(null) With this patch, we'll have:
UBIFS: mounted UBI device 0, volume 1, name "rootfs" Which is, I think, what was intended.

Although this is consmetic, I think it deserves to be added to the stable kernels, so I pushed this to linux-ubifs.git and added

Signature · 2 lines
Best Regards,
Artem Bityutskiy