dm: uart: Convert print output to acrn-dm logger

Unifies the logs to pr_* interfaces instead of printf 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:
Sun Peng 2020-08-28 07:09:28 +00:00 committed by wenlingz
parent e8d52d46bf
commit 54b8d4b43d

View File

@ -46,6 +46,7 @@
#include "ns16550.h"
#include "dm.h"
#include "dm_string.h"
#include "log.h"
#define COM1_BASE 0x3F8
#define COM1_IRQ 4
@ -70,8 +71,8 @@
#define SOCK_FIFOSZ (32 * 1024)
static int uart_debug;
#define DPRINTF(params) do { if (uart_debug) printf params; } while (0)
#define WPRINTF(params) (printf params)
#define DPRINTF(params) do { if (uart_debug) pr_dbg params; } while (0)
#define WPRINTF(params) (pr_err params)
static struct termios tio_stdio_orig;