X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Ftest%2Ftest-boot-timestamps.c;fp=src%2Ftest%2Ftest-boot-timestamps.c;h=354307cba11463a76a30ad9a4d61f89d40e11c32;hb=0a1beeb64207eaa88ab9236787b1cbc2f704ae14;hp=4ede318e38445a2e6d496b15c9efab70f1dc0a01;hpb=b4d23205f238e06aaa31264628e20669e714acad;p=elogind.git diff --git a/src/test/test-boot-timestamps.c b/src/test/test-boot-timestamps.c index 4ede318e3..354307cba 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("Failed to read ACPI FPDT: %s", strerror(-r)); + 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("Failed to read EFI loader data: %s", strerror(-r)); + 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("Failed to read variables: %s", strerror(-r)); + log_error_errno(-r, "Failed to read variables: %m"); return 1; }