[UNNECESSARY PATCH 16/16] signal: Coalesce kdb_printf formats

From: Joe Perches
Date: Sun Nov 16 2014 - 15:10:46 EST


Make the strings a bit more findable.

Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
---
kernel/signal.c | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/kernel/signal.c b/kernel/signal.c
index 1b0d3b0..7d5075a 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -3743,27 +3743,22 @@ void kdb_send_sig_info(struct task_struct *t, struct siginfo *info)

if (!spin_trylock(&t->sighand->siglock)) {
kdb_printf("Can't do kill command now.\n"
- "The sigmask lock is held somewhere else in "
- "kernel, try again later\n");
+ "The sigmask lock is held somewhere else in kernel, try again later.\n");
return;
}
spin_unlock(&t->sighand->siglock);
new_t = kdb_prev_t != t;
kdb_prev_t = t;
if (t->state != TASK_RUNNING && new_t) {
- kdb_printf("Process is not RUNNING, sending a signal from "
- "kdb risks deadlock\n"
- "on the run queue locks. "
- "The signal has _not_ been sent.\n"
- "Reissue the kill command if you want to risk "
- "the deadlock.\n");
+ kdb_printf("Process is not RUNNING, sending a signal from kdb risks deadlock on the run queue locks. The signal has _not_ been sent.\n"
+ "Reissue the kill command if you want to risk the deadlock.\n");
return;
}
sig = info->si_signo;
if (send_sig_info(sig, info, t))
- kdb_printf("Fail to deliver Signal %d to process %d.\n",
+ kdb_printf("Fail to deliver Signal %d to process %d\n",
sig, t->pid);
else
- kdb_printf("Signal %d is sent to process %d.\n", sig, t->pid);
+ kdb_printf("Signal %d is sent to process %d\n", sig, t->pid);
}
#endif /* CONFIG_KGDB_KDB */
--
2.1.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/