1 Star 0 Fork 100

ridedolphin/grub2

forked from src-openEuler/grub2 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
0119-Print-grub-emu-linux-loader-messages-as-debug.patch 1.24 KB
Copy Edit Raw Blame History
zhangqiumiao authored 2022-03-07 17:05 . update to version 2.06
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Javier Martinez Canillas <javierm@redhat.com>
Date: Tue, 9 Apr 2019 12:42:37 +0200
Subject: [PATCH] Print grub-emu linux loader messages as debug
They just polute the output and should better be debug messages instead.
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
---
grub-core/loader/emu/linux.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/grub-core/loader/emu/linux.c b/grub-core/loader/emu/linux.c
index 5b85b225eed..22ab6af1727 100644
--- a/grub-core/loader/emu/linux.c
+++ b/grub-core/loader/emu/linux.c
@@ -50,7 +50,7 @@ grub_linux_boot (void)
initrd_param = grub_xasprintf("%s", "");
}
- grub_printf("%serforming 'kexec -l %s %s %s'\n",
+ grub_dprintf ("linux", "%serforming 'kexec -l %s %s %s'\n",
(kexecute) ? "P" : "Not p",
kernel_path, initrd_param, boot_cmdline);
@@ -67,7 +67,7 @@ grub_linux_boot (void)
if (kexecute < 1)
grub_fatal (N_("Use '"PACKAGE"-emu --kexec' to force a system restart."));
- grub_printf("Performing 'systemctl kexec' (%s) ",
+ grub_dprintf ("linux", "Performing 'systemctl kexec' (%s) ",
(kexecute==1) ? "do-or-die" : "just-in-case");
rc = grub_util_exec (systemctl);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ridedolphin/grub2.git
git@gitee.com:ridedolphin/grub2.git
ridedolphin
grub2
grub2
master

Search

D67c1975 1850385 1daf7b77 1850385