include/usb/usb_device: Add USB_* log macros
Add USB_DBG, USB_WRN, USB_ERR, USB_INF macros in usb_device header file and remove them from usb device drivers. Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
This commit is contained in:
parent
c7567fe025
commit
452c3d6a87
6 changed files with 9 additions and 35 deletions
|
@ -38,11 +38,18 @@
|
|||
|
||||
#include <drivers/usb/usb_dc.h>
|
||||
#include <usb/usbstruct.h>
|
||||
#include <logging/log.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define USB_DBG(fmt, ...) LOG_DBG("(%p): %s: " fmt, k_current_get(), \
|
||||
__func__, ##__VA_ARGS__)
|
||||
#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__)
|
||||
|
||||
/*
|
||||
* These macros should be used to place the USB descriptors
|
||||
* in predetermined order in the RAM.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue