Brad Bishop | 977dc1a | 2019-02-06 16:01:43 -0500 | [diff] [blame^] | 1 | From 4e9d9358e0cda6d01020005eb6343e3b69f7201a Mon Sep 17 00:00:00 2001 |
| 2 | From: Cao jin <caoj.fnst@cn.fujitsu.com> |
| 3 | Date: Tue, 3 Jul 2018 18:51:13 +0800 |
| 4 | Subject: [PATCH] grub-setup: Debug message cleanup |
| 5 | |
| 6 | Variable "root" is initialized after root device probing and is null in |
| 7 | current place, so, drop it. |
| 8 | |
| 9 | Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com> |
| 10 | Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com> |
| 11 | --- |
| 12 | Upstream-Status: Backport [http://git.savannah.gnu.org/cgit/grub.git/commit/?id=4e9d9358e0cda6d01020005eb6343e3b69f7201a] |
| 13 | |
| 14 | util/setup.c | 3 +-- |
| 15 | 1 file changed, 1 insertion(+), 2 deletions(-) |
| 16 | |
| 17 | diff --git a/util/setup.c b/util/setup.c |
| 18 | index 80363075d..9c1e1b7da 100644 |
| 19 | --- a/util/setup.c |
| 20 | +++ b/util/setup.c |
| 21 | @@ -305,9 +305,8 @@ SETUP (const char *dir, |
| 22 | bl.first_block = (struct grub_boot_blocklist *) (core_img |
| 23 | + GRUB_DISK_SECTOR_SIZE |
| 24 | - sizeof (*bl.block)); |
| 25 | - grub_util_info ("root is `%s', dest is `%s'", root, dest); |
| 26 | |
| 27 | - grub_util_info ("Opening dest"); |
| 28 | + grub_util_info ("Opening dest `%s'", dest); |
| 29 | dest_dev = grub_device_open (dest); |
| 30 | if (! dest_dev) |
| 31 | grub_util_error ("%s", grub_errmsg); |
| 32 | -- |
| 33 | 2.17.2 (Apple Git-113) |
| 34 | |