1
0
Fork 0
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:
Stefan Lankes 2016-08-23 10:12:25 +02:00
parent 5e9f932869
commit 2a3622aa3c

View file

@ -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)