mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-25 02:41:45 +00:00
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:
@@ -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]);
|
||||
|
Reference in New Issue
Block a user