bootspec: tweak error message

Clarify that the name of the entry failed validation, not the entry
itself.
This commit is contained in:
Lennart Poettering 2020-10-19 14:20:03 +02:00
parent d9067aba40
commit dfc22cb472
1 changed files with 2 additions and 2 deletions

View File

@ -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)