regulator: Add rdev_crit() macro
PATCH 1/1 regulator: Add rdev_crit() macro
No actual users but provide the macro so there's less surprise when it's not there.
Signed-off-by Mark Brown <[email protected]>
--- drivers/regulator/core.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/regulator/core.c +2 -0
@@ -34,6 +34,8 @@#include "dummy.h" +#define rdev_crit (rdev, fmt, ...) \ + pr_crit("%s: " fmt, rdev_get_name(rdev), ##__VA_ARGS__)#define rdev_err (rdev, fmt, ...) \ pr_err("%s: " fmt, rdev_get_name(rdev), ##__VA_ARGS__)#define rdev_warn (rdev, fmt, ...) \
Signature · 1 line
1.7.5.3
Liam Girdwood
AppliedQuoted 5 lines · Mark Brown
No actual users but provide the macro so there's less surprise when it's not there.
Signed-off-by Mark Brown <[email protected]>
Applied.
Thanks
Liam
Quoted 13 lines · Mark Brown
No actual users but provide the macro so there's less surprise when it's not there.
Signed-off-by Mark Brown <[email protected]>--- drivers/regulator/core.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)drivers/regulator/core.c +0
-0
drivers/regulator/core.c line 41
Quoted 8 lines
drivers/regulator/core.c +2
-0@@ -34,6 +34,8 @@#include "dummy.h" +#define rdev_crit (rdev, fmt, ...) \ + pr_crit("%s: " fmt, rdev_get_name(rdev), ##__VA_ARGS__)#define rdev_err (rdev, fmt, ...) \ pr_err("%s: " fmt, rdev_get_name(rdev), ##__VA_ARGS__)#define rdev_warn (rdev, fmt, ...) \
If that's really necessary, shouldn't rdev_emerg, rdev_alert and rdev_notice be added as well?
Quoted 5 lines · Joe Perches
drivers/regulator/core.c line 38
Quoted 2 lines
drivers/regulator/core.c +2
-0+#define rdev_crit (rdev, fmt, ...) \ + pr_crit("%s: " fmt, rdev_get_name(rdev), ##__VA_ARGS__)If that's really necessary, shouldn't
rdev_emerg,rdev_alertandrdev_noticebe added as well?
Yes, but I don't habitually use those when adding random trace during debug so don't care myself.