mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-07 17:46:15 +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:
@@ -103,15 +103,6 @@ int execv_out2file(char * const argv[], const char *outfile)
|
||||
return -1;
|
||||
}
|
||||
|
||||
int debugfs_cmd(const char *loop_dev, const char *cmd, const char *outfile)
|
||||
{
|
||||
const char *argv[5] = {"debugfs", "-R", NULL, NULL, 0};
|
||||
|
||||
argv[2] = cmd;
|
||||
argv[3] = loop_dev;
|
||||
return execv_out2file((char * const *)argv, outfile);
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute a command described in format string, and redirect the output
|
||||
* to specified file. The file will be created/truncated if it
|
||||
|
||||
Reference in New Issue
Block a user