summaryrefslogtreecommitdiff
path: root/src/detect-virt
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2014-11-28 13:19:16 +0100
committerMichal Schmidt <mschmidt@redhat.com>2014-11-28 13:29:21 +0100
commitda927ba997d68401563b927f92e6e40e021a8e5c (patch)
tree71764cd998aef07b8943c5206c9307a93ba9c528 /src/detect-virt
parent0a1beeb64207eaa88ab9236787b1cbc2f704ae14 (diff)
treewide: no need to negate errno for log_*_errno()
It corrrectly handles both positive and negative errno values.
Diffstat (limited to 'src/detect-virt')
-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 d25c48ebfe..9a924117db 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_errno(-v, "Failed to check for virtualization: %m");
+ 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_errno(-r, "Failed to check for container: %m");
+ 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_errno(-r, "Failed to check for vm: %m");
+ log_error_errno(r, "Failed to check for vm: %m");
return EXIT_FAILURE;
}