Linux Container Development
 help / color / mirror / Atom feed
* [C/R][PATCH] Have ckpt_debug() print global pid and __LINE__
@ 2009-07-02  2:25 Sukadev Bhattiprolu
       [not found] ` <20090702022541.GA31350-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Sukadev Bhattiprolu @ 2009-07-02  2:25 UTC (permalink / raw)
  To: Oren Laadan; +Cc: Containers


Have ckpt_debug() print global-pid and __LINE__

Printing both global and virtual pid helps correlating dmesg with 
logs from mktree.

Signed-off-by: Sukadev Bhattiprolu <sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>

---
 include/linux/checkpoint.h |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Index: linux-cr/include/linux/checkpoint.h
===================================================================
--- linux-cr.orig/include/linux/checkpoint.h	2009-07-01 19:09:36.000000000 -0700
+++ linux-cr/include/linux/checkpoint.h	2009-07-01 19:20:29.000000000 -0700
@@ -281,12 +281,12 @@ extern int restore_signal(struct ckpt_ct
 extern unsigned long ckpt_debug_level;
 
 /* use this to select a specific debug level */
-#define _ckpt_debug(level, fmt, args...)			\
-	do {							\
-		if (ckpt_debug_level & (level))			\
-			printk(KERN_DEBUG "[%d:c/r:%s] " fmt,	\
-				task_pid_vnr(current),		\
-				 __func__, ## args);		\
+#define _ckpt_debug(level, fmt, args...)				\
+	do {								\
+		if (ckpt_debug_level & (level))				\
+			printk(KERN_DEBUG "[%d:%d:c/r:%s:%d] " fmt,	\
+				current->pid, task_pid_vnr(current),	\
+				 __func__, __LINE__, ## args);		\
 	} while (0)
 
 /*

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-02  6:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-02  2:25 [C/R][PATCH] Have ckpt_debug() print global pid and __LINE__ Sukadev Bhattiprolu
     [not found] ` <20090702022541.GA31350-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-07-02  6:49   ` Oren Laadan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox