NFC: Add nfc_dbg() macro
Subsystems (3)
PATCH 1/1 NFC: Add nfc_dbg() macro
In some cases nfc_dbg() is useful. Add such macro to a header.
--- include/net/nfc/nfc.h | 1 + 1 file changed, 1 insertion(+)
include/net/nfc/nfc.h +1 -0
@@ -27,6 +27,7 @@#include <linux/device.h> #include <linux/skbuff.h> +#define nfc_dbg (dev, fmt, ...) dev_dbg((dev), "NFC: " fmt, ##__VA_ARGS__)#define nfc_info (dev, fmt, ...) dev_info((dev), "NFC: " fmt, ##__VA_ARGS__)#define nfc_err (dev, fmt, ...) dev_err((dev), "NFC: " fmt, ##__VA_ARGS__)
Signature · 1 line
2.11.0
Quoted 2 lines · Andy Shevchenko
In some cases
nfc_dbg()is useful. Add such macro to a header.
I think we may drop this, since the idea is to get rid of such macros (as I read back in 2011 in commit message of change that removed nfc_dbg() one).
I will re-do dependent series to not use it at all.
Quoted 20 lines
Signed-off-by Andy Shevchenko <[email protected]>---
include/net/nfc/nfc.h | 1 +1 file changed, 1 insertion(+)include/net/nfc/nfc.h +0
-0@@ -27,6 +27,7 @@ #include <linux/device.h> #include <linux/skbuff.h>
+#definenfc_dbg(dev, fmt, ...)dev_dbg((dev), "NFC: " fmt, ##__VA_ARGS__)
#definenfc_info(dev, fmt, ...)dev_info((dev), "NFC: " fmt, ##__VA_ARGS__)
#definenfc_err(dev, fmt, ...)dev_err((dev), "NFC: " fmt, ##__VA_ARGS__)
Signature · 2 lines
Andy Shevchenko <[email protected]> Intel Finland Oy
Samuel Ortiz
AppliedQuoted 6 lines · Andy Shevchenko
In some cases
nfc_dbg()is useful. Add such macro to a header.Signed-off-by Andy Shevchenko <[email protected]>--- include/net/nfc/nfc.h | 1 + 1 file changed, 1 insertion(+)
Applied as well.
Cheers,
Samuel.