Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8545e03d authored by Sunil Mushran's avatar Sunil Mushran Committed by Joel Becker
Browse files

ocfs2: Add current->comm in trace output



Add current->comm to the standard mlog() output to help with debugging.

Signed-off-by: default avatarSunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
parent 96a1cc73
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -194,9 +194,9 @@ extern struct mlog_bits mlog_and_bits, mlog_not_bits;
 * previous token if args expands to nothing.
 * previous token if args expands to nothing.
 */
 */
#define __mlog_printk(level, fmt, args...)				\
#define __mlog_printk(level, fmt, args...)				\
	printk(level "(%u,%lu):%s:%d " fmt, task_pid_nr(current),	\
	printk(level "(%s,%u,%lu):%s:%d " fmt, current->comm,		\
	       __mlog_cpu_guess, __PRETTY_FUNCTION__, __LINE__ ,	\
	       task_pid_nr(current), __mlog_cpu_guess,			\
	       ##args)
	       __PRETTY_FUNCTION__, __LINE__ , ##args)


#define mlog(mask, fmt, args...) do {					\
#define mlog(mask, fmt, args...) do {					\
	u64 __m = MLOG_MASK_PREFIX | (mask);				\
	u64 __m = MLOG_MASK_PREFIX | (mask);				\