Skip to contentSkip to conversation

proc/base: Make prompt shell start from new line after executing "cat /proc/$pid/wchan"

PATCH New Minfei Huang 1 participant 1 message Mar 1, 2016 Proc filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proc/base: Make prompt shell start from new line after executing "cat /proc/$pid/wchan"

It is not elegant that prompt shell does not start from new line after executing "cat /proc/$pid/wchan". Make prompt shell start from new line.

---
 fs/proc/base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/proc/base.c +1 -1
index 4f764c2..0100ab4 100644
@@ -434,7 +434,7 @@ static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns,
 			&& !lookup_symbol_name(wchan, symname))
 		seq_printf(m, "%s", symname);
 	else
-		seq_putc(m, '0');
+		seq_puts(m, "0\n");
 
 	return 0;
 }
Signature · 1 line
2.5.0