X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fdetect-virt.c;fp=src%2Fdetect-virt.c;h=324f182c7e5cae3fd36355b4a93d664892b7c5f3;hb=65bc2c21140d20e757b0aed9bb23286939426abb;hp=57f0176668d0b07d15ce26d3f944cd5d2422fcf3;hpb=3bb1c6b04f93841c10d2cb1c4e2945d5a0bb8ff1;p=elogind.git diff --git a/src/detect-virt.c b/src/detect-virt.c index 57f017666..324f182c7 100644 --- a/src/detect-virt.c +++ b/src/detect-virt.c @@ -34,7 +34,8 @@ int main(int argc, char *argv[]) { * to detect whether we are being run in a virtualized * environment or not */ - if ((r = detect_virtualization(&id)) < 0) { + r = detect_virtualization(&id); + if (r < 0) { log_error("Failed to check for virtualization: %s", strerror(-r)); return EXIT_FAILURE; }