From: Lennart Poettering Date: Mon, 19 Oct 2020 12:20:03 +0000 (+0200) Subject: bootspec: tweak error message X-Git-Tag: v247-rc1~50^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dfc22cb4724851990d3d2ebcc2404a708e1b7223;p=thirdparty%2Fsystemd.git bootspec: tweak error message Clarify that the name of the entry failed validation, not the entry itself. --- diff --git a/src/shared/bootspec.c b/src/shared/bootspec.c index 565979e5cfc..189fa256392 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)