]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
qed: Align DP_ERR style with other DP macros
authorMintz, Yuval <Yuval.Mintz@cavium.com>
Tue, 23 May 2017 06:41:19 +0000 (09:41 +0300)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 19 Sep 2017 05:32:11 +0000 (22:32 -0700)
Orabug: 26783820

Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[ Upstream commit 9d7650c25498e4f51213fe48eddde5778434f375 ]
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
include/linux/qed/qed_if.h

index 8fc86f7029fc8de8035dad1a13d815a636d816ef..5c14577130b6a66d56b66f5e1797cd041ad4b33c 100644 (file)
@@ -701,11 +701,13 @@ struct qed_common_ops {
        (((value) >> (name ## _SHIFT)) & name ## _MASK)
 
 /* Debug print definitions */
-#define DP_ERR(cdev, fmt, ...)                                              \
-               pr_err("[%s:%d(%s)]" fmt,                                    \
-                      __func__, __LINE__,                                   \
-                      DP_NAME(cdev) ? DP_NAME(cdev) : "",                   \
-                      ## __VA_ARGS__)                                       \
+#define DP_ERR(cdev, fmt, ...)                                 \
+       do {                                                    \
+               pr_err("[%s:%d(%s)]" fmt,                       \
+                      __func__, __LINE__,                      \
+                      DP_NAME(cdev) ? DP_NAME(cdev) : "",      \
+                      ## __VA_ARGS__);                         \
+       } while (0)
 
 #define DP_NOTICE(cdev, fmt, ...)                                    \
        do {                                                          \