From: Lennart Poettering Date: Thu, 12 Apr 2012 13:10:28 +0000 (+0200) Subject: detect-virt: print 'none' if no virtualization is detected X-Git-Tag: v183~357 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac0d6edfac140a684533925adb897c35736308f2;p=systemd detect-virt: print 'none' if no virtualization is detected --- diff --git a/src/detect-virt.c b/src/detect-virt.c index bdcd27df..a83fb3ce 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; }