summaryrefslogtreecommitdiffstats
path: root/drivers/block/xen-blkback
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-05-11 16:15:24 -0400
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-05-12 16:42:51 -0400
commit1afbd730a33c6e4ca780a70351e8929dd4c40636 (patch)
treea9bbd73bef928ec4217f525ee075c85e55b6cb11 /drivers/block/xen-blkback
parentebe8190659244ec21b5f16950cf7b156f5b7eb01 (diff)
downloadblackbird-op-linux-1afbd730a33c6e4ca780a70351e8929dd4c40636.tar.gz
blackbird-op-linux-1afbd730a33c6e4ca780a70351e8929dd4c40636.zip
xen/blkback: Make the DPRINTK uniform.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/block/xen-blkback')
-rw-r--r--drivers/block/xen-blkback/common.h6
-rw-r--r--drivers/block/xen-blkback/xenbus.c5
2 files changed, 3 insertions, 8 deletions
diff --git a/drivers/block/xen-blkback/common.h b/drivers/block/xen-blkback/common.h
index e37dcf7f6b8e..46e5d0630440 100644
--- a/drivers/block/xen-blkback/common.h
+++ b/drivers/block/xen-blkback/common.h
@@ -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. */
diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkback/xenbus.c
index c86519c477f3..fa01dbbee0ad 100644
--- a/drivers/block/xen-blkback/xenbus.c
+++ b/drivers/block/xen-blkback/xenbus.c
@@ -21,11 +21,6 @@
#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;
OpenPOWER on IntegriCloud