xen/blkback: Make the DPRINTK uniform.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 11 May 2011 20:15:24 +0000 (16:15 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 12 May 2011 20:42:51 +0000 (16:42 -0400)
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/common.h
drivers/block/xen-blkback/xenbus.c

index e37dcf7f6b8ec0f9f6ce07b1ac27cb138bb8741f..46e5d0630440b797ff2b26b6933623898004c649 100644 (file)
@@ -42,9 +42,9 @@
 #include <xen/grant_table.h>
 #include <xen/xenbus.h>
 
-#define DPRINTK(_f, _a...)                     \
-       pr_debug("(file=%s, line=%d) " _f,      \
-                __FILE__ , __LINE__ , ## _a)
+#define DPRINTK(fmt, args...)                          \
+       pr_debug("xen-blkback: (%s:%d) " fmt ".\n",     \
+                __func__, __LINE__, ##args)
 
 struct vbd {
        /* What the domain refers to this vbd as. */
index c86519c477f3bf864a67affb04d48160dd1e8b61..fa01dbbee0ad87b05becb4676872a349a23c734e 100644 (file)
 #include <xen/grant_table.h>
 #include "common.h"
 
-#undef DPRINTK
-#define DPRINTK(fmt, args...)                          \
-       pr_debug("xen-blkback: (%s:%d) " fmt ".\n",     \
-                __func__, __LINE__, ##args)
-
 struct backend_info {
        struct xenbus_device    *dev;
        struct blkif_st         *blkif;