dm: usb: Convert print output to acrn-dm logger
Refine the UPRINTF to pr_* based log interface for better log management. Tracked-On: #5267 Signed-off-by: Sun Peng <peng.p.sun@intel.com> Reviewed-by: Chi Mingqiang <mingqiang.chi@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
parent
3f37fabc2e
commit
2d2d5e6e28
|
@ -33,6 +33,7 @@
|
|||
#include <pthread.h>
|
||||
#include <stdbool.h>
|
||||
#include "types.h"
|
||||
#include "log.h"
|
||||
|
||||
/* FIXME:
|
||||
* There are some huge data requests which need more than 256 TRBs in a single
|
||||
|
@ -215,7 +216,7 @@ enum USB_ERRCODE {
|
|||
#define LDBG 3
|
||||
#define LVRB 4
|
||||
#define UPRINTF(lvl, fmt, args...) \
|
||||
do { if (lvl <= usb_log_level) printf(LOG_TAG fmt, ##args); } while (0)
|
||||
do { if (lvl <= usb_log_level) pr_dbg(LOG_TAG fmt, ##args); } while (0)
|
||||
|
||||
#define NATIVE_USBSYS_DEVDIR "/sys/bus/usb/devices"
|
||||
#define NATIVE_USB2_SPEED "480"
|
||||
|
|
Loading…
Reference in New Issue