mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-09 02:24:45 +00:00
dm:replace perror with pr_err
use acrn-dm logger function instread of perror, this helps the stability testing log capture. Tracked-On: #4098 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
@@ -187,7 +187,7 @@ start_wdt_timer(void)
|
||||
timer_val.it_value.tv_sec = seconds;
|
||||
|
||||
if (acrn_timer_settime(&wdt_state.timer, &timer_val) == -1) {
|
||||
perror("WDT timerfd_settime failed.\n");
|
||||
pr_err("WDT timerfd_settime failed.\n");
|
||||
wdt_state.wdt_armed = false;
|
||||
return;
|
||||
}
|
||||
@@ -331,7 +331,7 @@ pci_wdt_init(struct vmctx *ctx, struct pci_vdev *dev, char *opts)
|
||||
{
|
||||
/*the wdt just has one inistance */
|
||||
if (wdt_state.reboot_enabled && wdt_state.timer1_val) {
|
||||
perror("wdt can't be initialized twice, please check!");
|
||||
pr_err("wdt can't be initialized twice, please check!");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user