[systemd-commits] src/detect-virt.c
Lennart Poettering
lennart at kemper.freedesktop.org
Thu Apr 12 06:10:36 PDT 2012
src/detect-virt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit ac0d6edfac140a684533925adb897c35736308f2
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Apr 12 15:10:28 2012 +0200
detect-virt: print 'none' if no virtualization is detected
diff --git a/src/detect-virt.c b/src/detect-virt.c
index bdcd27d..a83fb3c 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;
}
More information about the systemd-commits
mailing list