aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/cluster/masklog.h
diff options
context:
space:
mode:
authorSunil Mushran <sunil.mushran@oracle.com>2010-02-12 17:09:06 -0500
committerJoel Becker <joel.becker@oracle.com>2010-02-26 18:41:08 -0500
commit8545e03d82b6739461bbd60db7aba144f7dbe80f (patch)
treefd22d0ef63810cdf8774698d2382f9ddbab2e0d0 /fs/ocfs2/cluster/masklog.h
parent96a1cc731adb28dc4feb71701091b80e67d486a7 (diff)
ocfs2: Add current->comm in trace output
Add current->comm to the standard mlog() output to help with debugging. Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com> Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/cluster/masklog.h')
-rw-r--r--fs/ocfs2/cluster/masklog.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ocfs2/cluster/masklog.h b/fs/ocfs2/cluster/masklog.h
index 9b4d11726cf2..0442366b3060 100644
--- a/fs/ocfs2/cluster/masklog.h
+++ b/fs/ocfs2/cluster/masklog.h
@@ -194,9 +194,9 @@ extern struct mlog_bits mlog_and_bits, mlog_not_bits;
194 * previous token if args expands to nothing. 194 * previous token if args expands to nothing.
195 */ 195 */
196#define __mlog_printk(level, fmt, args...) \ 196#define __mlog_printk(level, fmt, args...) \
197 printk(level "(%u,%lu):%s:%d " fmt, task_pid_nr(current), \ 197 printk(level "(%s,%u,%lu):%s:%d " fmt, current->comm, \
198 __mlog_cpu_guess, __PRETTY_FUNCTION__, __LINE__ , \ 198 task_pid_nr(current), __mlog_cpu_guess, \
199 ##args) 199 __PRETTY_FUNCTION__, __LINE__ , ##args)
200 200
201#define mlog(mask, fmt, args...) do { \ 201#define mlog(mask, fmt, args...) do { \
202 u64 __m = MLOG_MASK_PREFIX | (mask); \ 202 u64 __m = MLOG_MASK_PREFIX | (mask); \