Skip to contentSkip to conversation

use debug=all in util/ to increase verbosity

PATCH In review Robert Millan 1 participant 2 messages Feb 6, 2008 – Feb 9, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 use debug=all in util/ to increase verbosity

What do you think of this? It worked very well for me when I just wanted to debug a problem with disk/raid.c.

Should we add the same to other util/ commands like grub-setup ?

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
util/grub-probe.c renamed from grub2/util/grub-probe.c +3 -0
diff -x configure -x config.h.in -x CVS -x '*~' -x '*.mk' -urp ../grub2/util/grub-probe.c ./util/grub-probe.c
@@ -293,6 +286,9 @@ main (int argc, char *argv[])
 	  }
     }
 
+  if (verbosity > 1)
+    grub_env_set ("debug", "all");
+
   /* Obtain PATH.  */
   if (optind >= argc)
     {
#1 lore raw
Quoted 5 lines · Robert Millan

What do you think of this? It worked very well for me when I just wanted to debug a problem with disk/raid.c.

Should we add the same to other util/ commands like grub-setup ?

Added. Also for grub-setup.

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)