[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <c34db3ea88a948e3092195fd228ec033a993aa10.1416167046.git.joe@perches.com>
Date: Sun, 16 Nov 2014 12:09:23 -0800
From: Joe Perches <joe@...ches.com>
To: Ionut Alexa <ionut.m.alexa@...il.com>, linux-kernel@...r.kernel.org
Cc: Al Viro <viro@...IV.linux.org.uk>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: [UNNECESSARY PATCH 16/16] signal: Coalesce kdb_printf formats
Make the strings a bit more findable.
Signed-off-by: Joe Perches <joe@...ches.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists