chiark / gitweb /
detect-virt: print 'none' if no virtualization is detected
authorLennart Poettering <lennart@poettering.net>
Thu, 12 Apr 2012 13:10:28 +0000 (15:10 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 12 Apr 2012 13:10:28 +0000 (15:10 +0200)
src/detect-virt.c

index bdcd27d..a83fb3c 100644 (file)
@@ -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;
 }