summaryrefslogtreecommitdiff
path: root/src/detect-virt/detect-virt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/detect-virt/detect-virt.c')
-rw-r--r--src/detect-virt/detect-virt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/detect-virt/detect-virt.c b/src/detect-virt/detect-virt.c
index ff5bee56f9..d25c48ebfe 100644
--- a/src/detect-virt/detect-virt.c
+++ b/src/detect-virt/detect-virt.c
@@ -131,7 +131,7 @@ int main(int argc, char *argv[]) {
v = detect_virtualization(&id);
if (v < 0) {
- log_error("Failed to check for virtualization: %s", strerror(-v));
+ log_error_errno(-v, "Failed to check for virtualization: %m");
return EXIT_FAILURE;
}
@@ -142,7 +142,7 @@ int main(int argc, char *argv[]) {
case ONLY_CONTAINER:
r = detect_container(&id);
if (r < 0) {
- log_error("Failed to check for container: %s", strerror(-r));
+ log_error_errno(-r, "Failed to check for container: %m");
return EXIT_FAILURE;
}
@@ -152,7 +152,7 @@ int main(int argc, char *argv[]) {
case ONLY_VM:
r = detect_vm(&id);
if (r < 0) {
- log_error("Failed to check for vm: %s", strerror(-r));
+ log_error_errno(-r, "Failed to check for vm: %m");
return EXIT_FAILURE;
}