From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sukadev Bhattiprolu Subject: [C/R][PATCH] Have ckpt_debug() print global pid and __LINE__ Date: Wed, 1 Jul 2009 19:25:41 -0700 Message-ID: <20090702022541.GA31350@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Oren Laadan Cc: Containers List-Id: containers.vger.kernel.org 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 --- 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) /*