diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-07-05 10:13:35 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-07-12 06:30:22 +0200 |
commit | 7b7f4c26089ab7c34c854a2713f35ccd262cc15a (patch) | |
tree | 278403995a0b47d3558067647b72fd1ca7922398 /src/shared | |
parent | bootspec: implement sorting by tries left/done, to match what sd-boot does (diff) | |
download | systemd-7b7f4c26089ab7c34c854a2713f35ccd262cc15a.tar.xz systemd-7b7f4c26089ab7c34c854a2713f35ccd262cc15a.zip |
bootspec: correct log level for fatal errors
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/bootspec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/bootspec.c b/src/shared/bootspec.c index e7aace151b..29338ac7c4 100644 --- a/src/shared/bootspec.c +++ b/src/shared/bootspec.c @@ -760,11 +760,11 @@ static int find_sections( r = pe_load_headers(fd, &dos_header, &pe_header); if (r < 0) - return log_warning_errno(r, "Failed to parse PE file '%s': %m", path); + return log_error_errno(r, "Failed to parse PE file '%s': %m", path); r = pe_load_sections(fd, dos_header, pe_header, §ions); if (r < 0) - return log_warning_errno(r, "Failed to parse PE sections of '%s': %m", path); + return log_error_errno(r, "Failed to parse PE sections of '%s': %m", path); if (ret_pe_header) *ret_pe_header = TAKE_PTR(pe_header); @@ -826,7 +826,7 @@ static int find_osrel_section( r = pe_read_section_data(fd, pe_header, sections, ".osrel", PE_SECTION_SIZE_MAX, (void**) ret_osrelease, NULL); if (r < 0) - return log_warning_errno(r, "Failed to read .osrel section of '%s': %m", path); + return log_error_errno(r, "Failed to read .osrel section of '%s': %m", path); return 0; } @@ -846,7 +846,7 @@ static int find_uki_sections( return r; if (!pe_is_uki(pe_header, sections)) - return log_warning_errno(SYNTHETIC_ERRNO(EBADMSG), "Parsed PE file '%s' is not a UKI.", path); + return log_error_errno(SYNTHETIC_ERRNO(EBADMSG), "Parsed PE file '%s' is not a UKI.", path); r = find_osrel_section(fd, path, sections, pe_header, ret_osrelease); if (r < 0) |