projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3267183
)
NFC: Add nfc_dbg() macro
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Wed, 22 Mar 2017 19:22:51 +0000
(21:22 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Wed, 5 Apr 2017 08:15:20 +0000
(10:15 +0200)
In some cases nfc_dbg() is useful. Add such macro to a header.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
include/net/nfc/nfc.h
patch
|
blob
|
history
diff --git
a/include/net/nfc/nfc.h
b/include/net/nfc/nfc.h
index
1a3de8b
..
bbdc73a
100644
(file)
--- a/
include/net/nfc/nfc.h
+++ b/
include/net/nfc/nfc.h
@@
-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__)