|
|
a85e8e |
From cf7c88c63e219f906d058b71f889264ac8e3bc3b Mon Sep 17 00:00:00 2001
|
|
|
a85e8e |
From: Colin Watson <cjwatson@ubuntu.com>
|
|
|
a85e8e |
Date: Mon, 31 Mar 2014 13:51:17 +0100
|
|
|
a85e8e |
Subject: [PATCH 069/260] Fix grub-probe -0 option
|
|
|
a85e8e |
|
|
|
a85e8e |
* util/grub-probe,c (options): Make -0 work again (broken by
|
|
|
a85e8e |
conversion to argp).
|
|
|
a85e8e |
(main): Simplify logic.
|
|
|
a85e8e |
---
|
|
|
a85e8e |
ChangeLog | 6 ++++++
|
|
|
a85e8e |
util/grub-probe.c | 7 ++-----
|
|
|
a85e8e |
2 files changed, 8 insertions(+), 5 deletions(-)
|
|
|
a85e8e |
|
|
|
a85e8e |
diff --git a/ChangeLog b/ChangeLog
|
|
|
a85e8e |
index 9404edab8..efbed8ccb 100644
|
|
|
a85e8e |
--- a/ChangeLog
|
|
|
a85e8e |
+++ b/ChangeLog
|
|
|
a85e8e |
@@ -1,3 +1,9 @@
|
|
|
a85e8e |
+2014-03-31 Colin Watson <cjwatson@ubuntu.com>
|
|
|
a85e8e |
+
|
|
|
a85e8e |
+ * util/grub-probe,c (options): Make -0 work again (broken by
|
|
|
a85e8e |
+ conversion to argp).
|
|
|
a85e8e |
+ (main): Simplify logic.
|
|
|
a85e8e |
+
|
|
|
a85e8e |
2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
a85e8e |
|
|
|
a85e8e |
* grub-core/lib/relocator.c: Fix the case when end of leftover is used.
|
|
|
a85e8e |
diff --git a/util/grub-probe.c b/util/grub-probe.c
|
|
|
a85e8e |
index 1f3b59f05..80509be8a 100644
|
|
|
a85e8e |
--- a/util/grub-probe.c
|
|
|
a85e8e |
+++ b/util/grub-probe.c
|
|
|
a85e8e |
@@ -711,6 +711,7 @@ static struct argp_option options[] = {
|
|
|
a85e8e |
N_("use FILE as the device map [default=%s]"), 0},
|
|
|
a85e8e |
{"target", 't', N_("TARGET"), 0, 0, 0},
|
|
|
a85e8e |
{"verbose", 'v', 0, 0, N_("print verbose messages."), 0},
|
|
|
a85e8e |
+ {0, '0', 0, 0, N_("separate items in output using ASCII NUL characters"), 0},
|
|
|
a85e8e |
{ 0, 0, 0, 0, 0, 0 }
|
|
|
a85e8e |
};
|
|
|
a85e8e |
|
|
|
a85e8e |
@@ -884,11 +885,7 @@ main (int argc, char *argv[])
|
|
|
a85e8e |
else
|
|
|
a85e8e |
probe (arguments.devices[0], NULL, delim);
|
|
|
a85e8e |
|
|
|
a85e8e |
- if (!arguments.zero_delim && (print == PRINT_BIOS_HINT
|
|
|
a85e8e |
- || print == PRINT_IEEE1275_HINT
|
|
|
a85e8e |
- || print == PRINT_BAREMETAL_HINT
|
|
|
a85e8e |
- || print == PRINT_EFI_HINT
|
|
|
a85e8e |
- || print == PRINT_ARC_HINT))
|
|
|
a85e8e |
+ if (delim == ' ')
|
|
|
a85e8e |
putchar ('\n');
|
|
|
a85e8e |
|
|
|
a85e8e |
/* Free resources. */
|
|
|
a85e8e |
--
|
|
|
a85e8e |
2.13.0
|
|
|
a85e8e |
|