UBI: print PID in debug messages
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 22 Aug 2012 13:40:05 +0000 (16:40 +0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 4 Sep 2012 06:38:57 +0000 (09:38 +0300)
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/debug.h

index d5d2645b51a78b899fdd8a0e0f4a57087f646b30..d9e89ec909836a4f1d5537169935cbe2263a910d 100644 (file)
@@ -39,7 +39,8 @@ void ubi_dump_vid_hdr(const struct ubi_vid_hdr *vid_hdr);
                print_hex_dump(l, ps, pt, r, g, b, len, a)
 
 #define ubi_dbg_msg(type, fmt, ...) \
-       pr_debug("UBI DBG " type ": " fmt "\n", ##__VA_ARGS__)
+       pr_debug("UBI DBG " type " (pid %d): " fmt "\n", current->pid,       \
+                ##__VA_ARGS__)
 
 /* Just a debugging messages not related to any specific UBI subsystem */
 #define dbg_msg(fmt, ...)                                    \