dm: usb: Convert print output to acrn-dm logger
Refine the UPRINTF to pr_* based log interface for better log management.
Acked-by: Wang, Yu1
#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"
