mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-09 02:24:45 +00:00
tools: acrn-crashlog: replace debugfs with api
Replace debugfs with api in loop.c. There is no functional change. Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com> Acked-by: Chen Gang <gang.c.chen@intel.com>
This commit is contained in:
@@ -44,6 +44,10 @@ static int get_cmdline_bootreason(char *bootreason, const size_t limit)
|
||||
CURRENT_KERNEL_CMDLINE, strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
if (!size) {
|
||||
LOGW("empty file (%s)\n", CURRENT_KERNEL_CMDLINE);
|
||||
return 0;
|
||||
}
|
||||
|
||||
start = strstr(cmdline, key);
|
||||
if (!start) {
|
||||
|
||||
Reference in New Issue
Block a user