usb: Do not include function name twice
When CONFIG_LOG_FUNCTION_NAME is defined to not add name again. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
c206b0239f
commit
c579414263
1 changed files with 5 additions and 0 deletions
|
@ -44,8 +44,13 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_LOG_FUNCTION_NAME)
|
||||
#define USB_DBG(fmt, ...) LOG_DBG("(%p): " fmt, k_current_get(), \
|
||||
##__VA_ARGS__)
|
||||
#else
|
||||
#define USB_DBG(fmt, ...) LOG_DBG("(%p): %s: " fmt, k_current_get(), \
|
||||
__func__, ##__VA_ARGS__)
|
||||
#endif /* CONFIG_LOG_FUNCTION_NAME */
|
||||
#define USB_ERR(fmt, ...) LOG_ERR(fmt, ##__VA_ARGS__)
|
||||
#define USB_WRN(fmt, ...) LOG_WRN(fmt, ##__VA_ARGS__)
|
||||
#define USB_INF(fmt, ...) LOG_INF(fmt, ##__VA_ARGS__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue