Przeglądaj źródła

qed: Align DP_ERR style with other DP macros

Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Mintz, Yuval 8 lat temu
rodzic
commit
9d7650c254
1 zmienionych plików z 7 dodań i 5 usunięć
  1. 7 5
      include/linux/qed/qed_if.h

+ 7 - 5
include/linux/qed/qed_if.h

@@ -700,11 +700,13 @@ struct qed_common_ops {
 	(((value) >> (name ## _SHIFT)) & name ## _MASK)
 	(((value) >> (name ## _SHIFT)) & name ## _MASK)
 
 
 /* Debug print definitions */
 /* 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, ...)				      \
 #define DP_NOTICE(cdev, fmt, ...)				      \
 	do {							      \
 	do {							      \