mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-18 15:28:43 +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:
@@ -41,6 +41,7 @@
|
||||
#include "irq.h"
|
||||
#include "lpc.h"
|
||||
#include "monitor.h"
|
||||
#include "log.h"
|
||||
|
||||
static pthread_mutex_t pm_lock = PTHREAD_MUTEX_INITIALIZER;
|
||||
static struct mevent *power_button;
|
||||
@@ -225,7 +226,7 @@ INOUT_PORT(pm1_enable, PM1A_EVT_ADDR + 2, IOPORT_F_INOUT, pm1_enable_handler);
|
||||
void
|
||||
inject_power_button_event(struct vmctx *ctx)
|
||||
{
|
||||
printf("%s", "press power button\n");
|
||||
pr_info("press power button\n");
|
||||
pthread_mutex_lock(&pm_lock);
|
||||
if (!(pm1_status & PM1_PWRBTN_STS)) {
|
||||
pm1_status |= PM1_PWRBTN_STS;
|
||||
|
Reference in New Issue
Block a user