Commit 9d7650c2 authored by Mintz, Yuval's avatar Mintz, Yuval Committed by David S. Miller

qed: Align DP_ERR style with other DP macros

Signed-off-by: default avatarYuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 48848a06
...@@ -700,11 +700,13 @@ struct qed_common_ops { ...@@ -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, ...) \ #define DP_ERR(cdev, fmt, ...) \
pr_err("[%s:%d(%s)]" fmt, \ do { \
__func__, __LINE__, \ pr_err("[%s:%d(%s)]" fmt, \
DP_NAME(cdev) ? DP_NAME(cdev) : "", \ __func__, __LINE__, \
## __VA_ARGS__) \ DP_NAME(cdev) ? DP_NAME(cdev) : "", \
## __VA_ARGS__); \
} while (0)
#define DP_NOTICE(cdev, fmt, ...) \ #define DP_NOTICE(cdev, fmt, ...) \
do { \ do { \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment