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:
parent
74bc5a2fcf
commit
11aaf99390
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue