summaryrefslogtreecommitdiff
path: root/src/test/test-boot-timestamps.c
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/test/test-boot-timestamps.c
parent0a1beeb64207eaa88ab9236787b1cbc2f704ae14 (diff)
treewide: no need to negate errno for log_*_errno()
It corrrectly handles both positive and negative errno values.
Diffstat (limited to 'src/test/test-boot-timestamps.c')
-rw-r--r--src/test/test-boot-timestamps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test-boot-timestamps.c b/src/test/test-boot-timestamps.c
index 354307cba..06d93af53 100644
--- a/src/test/test-boot-timestamps.c
+++ b/src/test/test-boot-timestamps.c
@@ -37,7 +37,7 @@ static int test_acpi_fpdt(void) {
r = acpi_get_boot_usec(&loader_start, &loader_exit);
if (r < 0) {
if (r != -ENOENT)
- log_error_errno(-r, "Failed to read ACPI FPDT: %m");
+ log_error_errno(r, "Failed to read ACPI FPDT: %m");
return r;
}
@@ -60,7 +60,7 @@ static int test_efi_loader(void) {
r = efi_loader_get_boot_usec(&loader_start, &loader_exit);
if (r < 0) {
if (r != -ENOENT)
- log_error_errno(-r, "Failed to read EFI loader data: %m");
+ log_error_errno(r, "Failed to read EFI loader data: %m");
return r;
}
@@ -84,7 +84,7 @@ int main(int argc, char* argv[]) {
r = boot_timestamps(NULL, &fw, &l);
if (r < 0) {
- log_error_errno(-r, "Failed to read variables: %m");
+ log_error_errno(r, "Failed to read variables: %m");
return 1;
}