]> err.no Git - systemd/commitdiff
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 bdcd27df6e4dc06b54052361015088916d99fa3d..a83fb3ced52059501ab6beae0c08edbfc6f99eb8 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;
 }