From 7ef2bc926e7077f664e7b5722c64fa34d8d38636 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 30 Jul 2010 14:53:22 +0000 Subject: [PATCH] Made ib_srpt_compl kernel thread logging more detailed. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1897 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 4b29e6ed4..9549db5f8 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -1997,14 +1997,16 @@ static int srpt_compl_thread(void *arg) ch = arg; BUG_ON(!ch); - PRINT_INFO("Kernel thread %s started", ch->thread->comm); + PRINT_INFO("Session %s: kernel thread %s (PID %d) started", + ch->sess_name, ch->thread->comm, current->pid); while (!kthread_should_stop()) { wait_event_interruptible(ch->wait_queue, (srpt_process_rcv_completion(ch->scq, ch, SCST_CONTEXT_THREAD), kthread_should_stop())); } - PRINT_INFO("Kernel thread %s stopped", ch->thread->comm); + PRINT_INFO("Kernel thread %s (PID %d) stopped", ch->thread->comm, + current->pid); return 0; }