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

[Xen-devel] [PATCH OSSTEST v4 16/21] Debian: grub2: Log full line range of menuentry and submenu entries



Is useful when debugging.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 Osstest/Debian.pm | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index 06b02fb..52e1adc 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -412,8 +412,7 @@ sub setupboot_grub2 ($$$$) {
             if (m/^\s*\}\s*$/) {
                 die unless $entry || $submenu;
                 if (!defined $entry && defined $submenu) {
-                    logm("Met end of a submenu starting from ".
-                        "$submenu->{StartLine}. ".
+                    logm("Met end of a submenu $submenu->{StartLine}..$.. ".
                         "Our want kern is $want_kernver");
                     $submenu=undef;
                     pop @offsets;
@@ -426,14 +425,14 @@ sub setupboot_grub2 ($$$$) {
                         ? qw(Title Hv KernDom0 KernVer)
                         : qw(Title Hv KernOnly KernVer));
                if (@missing) {
-                   logm("(skipping entry at $entry->{StartLine};".
+                   logm("(skipping entry at $entry->{StartLine}..$.;".
                         " no @missing)");
                } elsif (defined $want_kernver &&
                         $entry->{KernVer} ne $want_kernver) {
-                   logm("(skipping entry at $entry->{StartLine};".
+                   logm("(skipping entry at $entry->{StartLine}..$.;".
                         " kernel $entry->{KernVer}, not $want_kernver)");
                } elsif ($want_xsm && !defined $entry->{Xenpolicy}) {
-                   logm("(skipping entry at $entry->{StartLine};".
+                   logm("(skipping entry at $entry->{StartLine}..$.;".
                         " XSM policy file not present)");
                } else {
                    # yes!
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.