Skip to content
Snippets Groups Projects
Commit f724bd6e authored by Aastha Mehta's avatar Aastha Mehta
Browse files

enhance dbg print stmt with cpu id, and thread info

parent bcf7ddbc
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,8 @@ enum bnx2x_int_mode {
/* regular debug print */
#define DP_INNER(fmt, ...) \
pr_notice("[%s:%d(%s)]" fmt, \
pr_notice("[(%d:%.16s,core:%d)|%s:%d(%s)]" fmt, \
task_pid_nr(current), current->comm, smp_processor_id(), \
__func__, __LINE__, \
bp->dev ? (bp->dev->name) : "?", \
##__VA_ARGS__);
......@@ -119,7 +120,8 @@ do { \
/* for errors (never masked) */
#define BNX2X_ERR(fmt, ...) \
do { \
pr_err("[%s:%d(%s)]" fmt, \
pr_err("[(%d:%.16s,core:%d)|%s:%d(%s)]" fmt, \
task_pid_nr(current), current->comm, smp_processor_id(), \
__func__, __LINE__, \
bp->dev ? (bp->dev->name) : "?", \
##__VA_ARGS__); \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment