From dfc22cb4724851990d3d2ebcc2404a708e1b7223 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 19 Oct 2020 14:20:03 +0200 Subject: [PATCH] bootspec: tweak error message Clarify that the name of the entry failed validation, not the entry itself. --- src/shared/bootspec.c | 4 ++-- 1 file 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)