projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5946be
)
proc/base: make prompt shell start from new line after executing "cat /proc/$pid...
author
Minfei Huang
<mnfhuang@gmail.com>
Thu, 17 Mar 2016 21:21:00 +0000
(14:21 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Thu, 17 Mar 2016 22:09:34 +0000
(15:09 -0700)
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.
Signed-off-by: Minfei Huang <mnfhuang@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/proc/base.c
b/fs/proc/base.c
index 9e42411eef3fd1e0b636ca65a8e083c3c4f40526..b1755b23893e5e34513582d51d7a9cf9ed6b7227 100644
(file)
--- a/
fs/proc/base.c
+++ b/
fs/proc/base.c
@@
-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_put
c(m, '0'
);
+ seq_put
s(m, "0\n"
);
return 0;
}