diff options
-rw-r--r-- | fs/ubifs/debug.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/ubifs/debug.h b/fs/ubifs/debug.h index 760de723dadb..46b8dd123585 100644 --- a/fs/ubifs/debug.h +++ b/fs/ubifs/debug.h | |||
@@ -165,12 +165,14 @@ struct ubifs_global_debug_info { | |||
165 | } while (0) | 165 | } while (0) |
166 | 166 | ||
167 | #define ubifs_dbg_msg(type, fmt, ...) \ | 167 | #define ubifs_dbg_msg(type, fmt, ...) \ |
168 | pr_debug("UBIFS DBG " type ": " fmt "\n", ##__VA_ARGS__) | 168 | pr_debug("UBIFS DBG " type " (pid %d): " fmt "\n", current->pid, \ |
169 | ##__VA_ARGS__) | ||
169 | 170 | ||
170 | #define DBG_KEY_BUF_LEN 48 | 171 | #define DBG_KEY_BUF_LEN 48 |
171 | #define ubifs_dbg_msg_key(type, key, fmt, ...) do { \ | 172 | #define ubifs_dbg_msg_key(type, key, fmt, ...) do { \ |
172 | char __tmp_key_buf[DBG_KEY_BUF_LEN]; \ | 173 | char __tmp_key_buf[DBG_KEY_BUF_LEN]; \ |
173 | pr_debug("UBIFS DBG " type ": " fmt "%s\n", ##__VA_ARGS__, \ | 174 | pr_debug("UBIFS DBG " type " (pid %d): " fmt "%s\n", current->pid, \ |
175 | ##__VA_ARGS__, \ | ||
174 | dbg_snprintf_key(c, key, __tmp_key_buf, DBG_KEY_BUF_LEN)); \ | 176 | dbg_snprintf_key(c, key, __tmp_key_buf, DBG_KEY_BUF_LEN)); \ |
175 | } while (0) | 177 | } while (0) |
176 | 178 | ||