diff options
author | Joe Perches <joe@perches.com> | 2013-02-01 22:33:58 (GMT) |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-05-30 04:32:54 (GMT) |
commit | d236cd0e209c595434ba15defe56f2e5aa488d1a (patch) | |
tree | 8923b0a6da967939016c77251a3094317070af3d /drivers/infiniband/ulp | |
parent | 5cfb17828d877a5541171087b9d746befdf2a126 (diff) | |
download | linux-d236cd0e209c595434ba15defe56f2e5aa488d1a.tar.xz |
IB/srp: Avoid problems if a header uses pr_fmt
SRP defines pr_fmt(fmt) to be "PFX fmt", and then includes a bunch of
header files before it gets around to defining PFX. This causes
problems if any of the header files do a pr_... and use pr_fmt().
Fix this by using KBUILD_MODNAME instead of the private PFX.
Acked-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r-- | drivers/infiniband/ulp/srp/ib_srp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index b42f132..e3c2c5b 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -30,7 +30,7 @@ * SOFTWARE. */ -#define pr_fmt(fmt) PFX fmt +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/module.h> #include <linux/init.h> |