mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-06 19:30:46 +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:
@@ -174,7 +174,7 @@ static void write_to_disk(const char *fmt, va_list args)
|
||||
|
||||
write_cnt = write(disk_fd, buffer, strnlen(buffer, DISK_LOG_MAX_LEN));
|
||||
if (write_cnt < 0) {
|
||||
perror(DISK_PREFIX"write disk failed");
|
||||
pr_err(DISK_PREFIX"write disk failed");
|
||||
close(disk_fd);
|
||||
disk_fd = -1;
|
||||
return;
|
||||
|
Reference in New Issue
Block a user