acrn-hypervisor/devicemodel/log
Yonghua Huang 7909cf31c6 dm: fix potential program crash issue in disk_logger
detection of any error in 'probe_disk_log_file()'
  calling 'pr_err()' will cause 'write_to_disk()' function
  being called recursively infinitely, as pr_err will
  call write_to_disk() and trap to probe_disk_log_file() again,
  hence program will crash finally.

  This patch fix above issue by using printf instead of pr_err,
  as printf outputs to console directly.

Tracked-On: #6518
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
2021-08-31 13:07:32 +08:00
..
disk_logger.c dm: fix potential program crash issue in disk_logger 2021-08-31 13:07:32 +08:00
kmsg_logger.c dm:replace perror with pr_err 2020-01-08 13:37:57 +08:00
log.c DM: add deinit API for loggers 2019-06-13 13:06:51 +08:00