[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] grub-setup: debug message cleanup

From: Cao jin
Subject: [PATCH] grub-setup: debug message cleanup
Date: Tue, 3 Jul 2018 18:51:13 +0800

variable "root" is initialized after root device probing, and is null in
current place, so, drop it.

Signed-off-by: Cao jin <address@hidden>
 util/setup.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

BTW, I am still not very sure about "root device" in grub, is it the
partition where boot directory resides?

diff --git a/util/setup.c b/util/setup.c
index 8aa5a39a7..7d3bf2c27 100644
--- a/util/setup.c
+++ b/util/setup.c
@@ -298,9 +298,8 @@ SETUP (const char *dir,
   bl.first_block = (struct grub_boot_blocklist *) (core_img
                                                   + GRUB_DISK_SECTOR_SIZE
                                                   - sizeof (*bl.block));
-  grub_util_info ("root is `%s', dest is `%s'", root, dest);
-  grub_util_info ("Opening dest");
+  grub_util_info ("Opening dest `%s'", dest);
   dest_dev = grub_device_open (dest);
   if (! dest_dev)
     grub_util_error ("%s", grub_errmsg);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]