mirror of
https://github.com/systemd/systemd.git
synced 2025-03-13 00:58:27 +03:00
bootspec: tweak error message
Clarify that the name of the entry failed validation, not the entry itself.
This commit is contained in:
parent
d9067aba40
commit
dfc22cb472
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user