]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootspec: tweak error message
authorLennart Poettering <lennart@poettering.net>
Mon, 19 Oct 2020 12:20:03 +0000 (14:20 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 19 Oct 2020 12:22:25 +0000 (14:22 +0200)
Clarify that the name of the entry failed validation, not the entry
itself.

src/shared/bootspec.c

index 565979e5cfc60a2d69009ce19496f4acbf101d1b..189fa25639258bc28ac6cdae762f4a307e5ef83d 100644 (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)