From 63753d0572ad8461ec9650e72004f16e073985e2 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Tue, 25 Aug 2015 03:44:31 +0000 Subject: [PATCH] scst: improve logging Better to see in the logs in (S)IRQs wrong thread ID, than no thread ID under IRQ locks git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6479 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_debug.c b/scst/src/scst_debug.c index 88acf74e9..e470cce10 100644 --- a/scst/src/scst_debug.c +++ b/scst/src/scst_debug.c @@ -54,7 +54,7 @@ static inline int get_current_tid(void) * Unfortunately, task_pid_vnr() isn't IRQ-safe, so otherwise * it can oops. ToDo. */ - return 0; + return current->pid; } return task_pid_vnr(current); #endif