dm:use acrn-dm logger function instread of printf

Use acrn-dm logger function instread of printf,
this helps the stability testing log capture.

Tracked-On: #4098
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Cao Minggui <minggui.cao@intel.com>
Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
Mingqiang Chi
2019-11-13 14:11:37 +08:00
committed by wenlingz
parent 22a1bd6948
commit 5375a1613b
22 changed files with 130 additions and 121 deletions

View File

@@ -23,6 +23,7 @@
#include "acpi.h"
#include "mevent.h"
#include "monitor.h"
#include "log.h"
#define POWER_BUTTON_NAME "power_button"
#define POWER_BUTTON_ACPI_DRV "/sys/bus/acpi/drivers/button/LNXPWRBN:00/"
@@ -153,7 +154,7 @@ open_power_button_input_device(const char *drv, const char *dir)
/* Open the input device */
fd = open(name, O_RDONLY);
if (fd > 0)
printf("Watching power button on %s\n", name);
pr_info("Watching power button on %s\n", name);
while (nevent--)
free(event_dirs[nevent]);