nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0132-Print-grub-emu-linux-loader-messages-as-debug.patch

5593c8
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
5593c8
From: Javier Martinez Canillas <javierm@redhat.com>
5593c8
Date: Tue, 9 Apr 2019 12:42:37 +0200
5593c8
Subject: [PATCH] Print grub-emu linux loader messages as debug
5593c8
5593c8
They just polute the output and should better be debug messages instead.
5593c8
5593c8
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
5593c8
---
5593c8
 grub-core/loader/emu/linux.c | 4 ++--
5593c8
 1 file changed, 2 insertions(+), 2 deletions(-)
5593c8
5593c8
diff --git a/grub-core/loader/emu/linux.c b/grub-core/loader/emu/linux.c
5593c8
index 5b85b225eed..22ab6af1727 100644
5593c8
--- a/grub-core/loader/emu/linux.c
5593c8
+++ b/grub-core/loader/emu/linux.c
5593c8
@@ -50,7 +50,7 @@ grub_linux_boot (void)
5593c8
     initrd_param = grub_xasprintf("%s", "");
5593c8
   }
5593c8
 
5593c8
-  grub_printf("%serforming 'kexec -l %s %s %s'\n",
5593c8
+  grub_dprintf ("linux", "%serforming 'kexec -l %s %s %s'\n",
5593c8
 	(kexecute) ? "P" : "Not p",
5593c8
 	kernel_path, initrd_param, boot_cmdline);
5593c8
 
5593c8
@@ -67,7 +67,7 @@ grub_linux_boot (void)
5593c8
   if (kexecute < 1)
5593c8
     grub_fatal (N_("Use '"PACKAGE"-emu --kexec' to force a system restart."));
5593c8
 
5593c8
-  grub_printf("Performing 'systemctl kexec' (%s) ",
5593c8
+  grub_dprintf ("linux", "Performing 'systemctl kexec' (%s) ",
5593c8
 		(kexecute==1) ? "do-or-die" : "just-in-case");
5593c8
   rc = grub_util_exec (systemctl);
5593c8