mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-16 14:28:56 +00:00
dm:use acrn-dm logger function instread of fprintf
use acrn-dm logger function instread of fprintf, 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:
@@ -67,12 +67,12 @@ reset_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes,
|
||||
reset_control = *eax;
|
||||
|
||||
if (*eax & 0x8) {
|
||||
fprintf(stderr, "full reset\r\n");
|
||||
pr_notice("full reset\r\n");
|
||||
vm_suspend(ctx, VM_SUSPEND_FULL_RESET);
|
||||
mevent_notify();
|
||||
reset_control = 0;
|
||||
} else if (*eax & 0x4) {
|
||||
fprintf(stderr, "system reset\r\n");
|
||||
pr_notice("system reset\r\n");
|
||||
vm_suspend(ctx, VM_SUSPEND_SYSTEM_RESET);
|
||||
mevent_notify();
|
||||
}
|
||||
|
Reference in New Issue
Block a user