diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-04-12 15:10:28 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-04-12 15:10:28 +0200 |
commit | ac0d6edfac140a684533925adb897c35736308f2 (patch) | |
tree | 92ca96a01f9b1b1c0f7597fdcd7ee8c5fac7b277 /src | |
parent | 984bf9312e3f2c7cc165b54546270ce7804d5a4d (diff) |
detect-virt: print 'none' if no virtualization is detected
Diffstat (limited to 'src')
-rw-r--r-- | src/detect-virt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/detect-virt.c b/src/detect-virt.c index bdcd27df6e..a83fb3ced5 100644 --- a/src/detect-virt.c +++ b/src/detect-virt.c @@ -164,8 +164,8 @@ int main(int argc, char *argv[]) { break; } - if (id && !arg_quiet) - puts(id); + if (!arg_quiet) + puts(id ? id : "none"); return retval; } |