aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2017-02-09 14:23:50 -0800
committerDoug Ledford <dledford@redhat.com>2017-04-20 16:13:20 -0400
commit700456bd25946ef531773d1ad2dd511e1cc4515e (patch)
treea1239c207684dc62de9c584c73e3dd10b502559a /drivers/infiniband/hw/cxgb4/iw_cxgb4.h
parentcxgb3: Convert PDBG to pr_debug (diff)
downloadlinux-dev-700456bd25946ef531773d1ad2dd511e1cc4515e.tar.xz
linux-dev-700456bd25946ef531773d1ad2dd511e1cc4515e.zip
cxgb4: Use more common logging style
Convert printks to pr_<level> Miscellanea: o Coalesce formats o Realign arguments Signed-off-by: Joe Perches <joe@perches.com> Reviewed-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/iw_cxgb4.h')
-rw-r--r--drivers/infiniband/hw/cxgb4/iw_cxgb4.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
index 5846c47c8d55..e2fec1c31a97 100644
--- a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
+++ b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
@@ -64,6 +64,12 @@
#define DRV_NAME "iw_cxgb4"
#define MOD DRV_NAME ":"
+#ifdef pr_fmt
+#undef pr_fmt
+#endif
+
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
extern int c4iw_debug;
#define PDBG(fmt, args...) \
do { \