diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-10-19 14:20:03 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-10-19 14:22:25 +0200 |
commit | dfc22cb4724851990d3d2ebcc2404a708e1b7223 (patch) | |
tree | b3b725a4b093c560eaf755986f5cca0a564141de /src | |
parent | doc: document charset to use for bootspec entry names (diff) | |
download | systemd-dfc22cb4724851990d3d2ebcc2404a708e1b7223.tar.xz systemd-dfc22cb4724851990d3d2ebcc2404a708e1b7223.zip |
bootspec: tweak error message
Clarify that the name of the entry failed validation, not the entry
itself.
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/bootspec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/bootspec.c b/src/shared/bootspec.c index 565979e5cf..189fa25639 100644 --- a/src/shared/bootspec.c +++ b/src/shared/bootspec.c @@ -80,7 +80,7 @@ static int boot_entry_load( return log_oom(); if (!efi_loader_entry_name_valid(tmp.id)) - return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Invalid loader entry: %s", tmp.id); + return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Invalid loader entry name: %s", tmp.id); tmp.path = strdup(path); if (!tmp.path) @@ -327,7 +327,7 @@ static int boot_entry_load_unified( return log_oom(); if (!efi_loader_entry_name_valid(tmp.id)) - return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Invalid loader entry: %s", tmp.id); + return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Invalid loader entry name: %s", tmp.id); tmp.path = strdup(path); if (!tmp.path) |