Skip to contentSkip to conversation

NFC: Add nfc_dbg() macro

PATCH Applied Andy Shevchenko 3 participants 3 messages Mar 22, 2017 – Apr 5, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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
index 1a3de8b34ad2..bbdc73a3239d 100644
@@ -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
#1 lore raw
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

---
 include/net/nfc/nfc.h | 1 +

 1 file changed, 1 insertion(+)
include/net/nfc/nfc.h +0 -0
index 1a3de8b34ad2..bbdc73a3239d 100644
@@ -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 · 2 lines
Andy Shevchenko <[email protected]>
Intel Finland Oy