From af88a066d0e4fc5aaa63b2e7a4989d1f64b3f7b2 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 2 Oct 2025 23:47:31 +0100 Subject: grub/xhci: rename to grub/xhci_nvme we have the "default" tree, then the "nvme" tree which adds nvme support. the "xhci" tree adds xhci patches, *and* nvme patches. riku suggested that i rename it accordingly, and his advice was quite correct, indeed wise. this will reduce confusion for contributors, including *myself*. Signed-off-by: Leah Rowe --- .../0013-don-t-print-empty-error-messages.patch | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 config/grub/xhci_nvme/patches/0013-don-t-print-empty-error-messages.patch (limited to 'config/grub/xhci_nvme/patches/0013-don-t-print-empty-error-messages.patch') diff --git a/config/grub/xhci_nvme/patches/0013-don-t-print-empty-error-messages.patch b/config/grub/xhci_nvme/patches/0013-don-t-print-empty-error-messages.patch new file mode 100644 index 00000000..4bf96b50 --- /dev/null +++ b/config/grub/xhci_nvme/patches/0013-don-t-print-empty-error-messages.patch @@ -0,0 +1,31 @@ +From 272c5f5724c0790aff48b0d6ba75928de2275b33 Mon Sep 17 00:00:00 2001 +From: Leah Rowe +Date: Sun, 5 Nov 2023 17:25:20 +0000 +Subject: [PATCH 13/26] don't print empty error messages + +this is part two of the quest to kill the prefix +error message. after i disabled prefix-related +messages, it still printed "error: ." on screen. + +Signed-off-by: Leah Rowe +--- + grub-core/kern/err.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/grub-core/kern/err.c b/grub-core/kern/err.c +index 53c734de7..7cac53983 100644 +--- a/grub-core/kern/err.c ++++ b/grub-core/kern/err.c +@@ -107,7 +107,8 @@ grub_print_error (void) + { + if (grub_errno != GRUB_ERR_NONE) + { +- grub_err_printf (_("error: %s.\n"), grub_errmsg); ++ if (grub_strlen(grub_errmsg) > 0) ++ grub_err_printf (_("error: %s.\n"), grub_errmsg); + grub_err_printed_errors++; + } + } +-- +2.39.5 + -- cgit v1.2.1