1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

if HERMIT_VERBOS is set to 0, don't print the log file

This commit is contained in:
Stefan Lankes 2016-09-22 19:39:52 +02:00
parent 74bc5a2fcf
commit 11aaf99390

View file

@ -286,7 +286,7 @@ static int init_qemu(char *path)
}*/
str = getenv("HERMIT_VERBOSE");
if (str)
if (str && (strcmp(str, "0") != 0))
{
printf("qemu startup command: ");
@ -389,7 +389,7 @@ static void dump_log(void)
FILE* file;
char line[2048];
if (!str)
if (!(str && (strcmp(str, "0") != 0)))
return;
if (!qemu)