Skip to contentSkip to conversation

init: use pr_cont() when displaying rotator during ramdisk loading.

PATCH New Nicolas Schichan 1 participant 1 message Nov 24, 2016 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 init: use pr_cont() when displaying rotator during ramdisk loading.

Otherwise each individual rotator char would be printed in a new line:

(...)

[    0.642350] -
[    0.644374] |
[    0.646367] -

(...)

---
 init/do_mounts_rd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
init/do_mounts_rd.c +1 -1
index 8a09b32..dd4104c 100644
@@ -272,7 +272,7 @@ int __init rd_load_image(char *from)
 		sys_write(out_fd, buf, BLOCK_SIZE);
 #if !defined(CONFIG_S390)
 		if (!(i % 16)) {
-			printk("%c\b", rotator[rotate & 0x3]);
+			pr_cont("%c\b", rotator[rotate & 0x3]);
 			rotate++;
 		}
 #endif
Signature · 1 line
2.7.4