projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48848a0
)
qed: Align DP_ERR style with other DP macros
author
Mintz, Yuval
<Yuval.Mintz@cavium.com>
Tue, 23 May 2017 06:41:19 +0000
(09:41 +0300)
committer
David S. Miller
<davem@davemloft.net>
Wed, 24 May 2017 19:17:19 +0000
(15:17 -0400)
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/qed/qed_if.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/qed/qed_if.h
b/include/linux/qed/qed_if.h
index c70ac13a97e66e9ded8a81f2716228619f55a98c..ff590cb37a0093ab859ae25871cd5c2818d344d9 100644
(file)
--- a/
include/linux/qed/qed_if.h
+++ b/
include/linux/qed/qed_if.h
@@
-700,11
+700,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 { \