From: Artem Bityutskiy Date: Wed, 22 Aug 2012 13:37:13 +0000 (+0300) Subject: UBIFS: print PID in debug messages X-Git-Tag: upstream/snapshot3+hdmi~6552^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c45640d87b8272e85d19147dad914a6b82e51370;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git UBIFS: print PID in debug messages Signed-off-by: Artem Bityutskiy --- diff --git a/fs/ubifs/debug.h b/fs/ubifs/debug.h index 760de72..46b8dd1 100644 --- a/fs/ubifs/debug.h +++ b/fs/ubifs/debug.h @@ -165,12 +165,14 @@ struct ubifs_global_debug_info { } while (0) #define ubifs_dbg_msg(type, fmt, ...) \ - pr_debug("UBIFS DBG " type ": " fmt "\n", ##__VA_ARGS__) + pr_debug("UBIFS DBG " type " (pid %d): " fmt "\n", current->pid, \ + ##__VA_ARGS__) #define DBG_KEY_BUF_LEN 48 #define ubifs_dbg_msg_key(type, key, fmt, ...) do { \ char __tmp_key_buf[DBG_KEY_BUF_LEN]; \ - pr_debug("UBIFS DBG " type ": " fmt "%s\n", ##__VA_ARGS__, \ + pr_debug("UBIFS DBG " type " (pid %d): " fmt "%s\n", current->pid, \ + ##__VA_ARGS__, \ dbg_snprintf_key(c, key, __tmp_key_buf, DBG_KEY_BUF_LEN)); \ } while (0)