[Devel] Re: [C/R][PATCH] Have ckpt_debug() print global pid and __LINE__
Oren Laadan
orenl at cs.columbia.edu
Wed Jul 1 23:49:58 PDT 2009
Good idea - in queue for v17.
Thanks,
Oren.
Sukadev Bhattiprolu wrote:
> 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 at us.ibm.com>
>
> ---
> 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)
>
> /*
>
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list