mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
if HERMIT_VERBOSE is set, the used qemu command will be printed
This commit is contained in:
parent
5e9f932869
commit
2a3622aa3c
1 changed files with 12 additions and 2 deletions
|
@ -176,8 +176,18 @@ static int init_qemu(char *path)
|
|||
str = strstr(loader_path, "proxy");
|
||||
strncpy(str, "../arch/x86/loader/ldhermit.elf", MAX_PATH-strlen(loader_path)+5);
|
||||
|
||||
//for(int i=0; qemu_argv[i] != NULL; i++)
|
||||
// printf("%s\n", qemu_argv[i]);
|
||||
str = getenv("HERMIT_VERBOSE");
|
||||
if (str)
|
||||
{
|
||||
printf("qemu startup command: \n");
|
||||
printf("%s ", qemu_str);
|
||||
|
||||
for(int i=0; qemu_argv[i] != NULL; i++)
|
||||
printf("%s ", qemu_argv[i]);
|
||||
|
||||
printf("\n");
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
id = fork();
|
||||
if (id == 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue