grub-devel
[Top][All Lists]
Advanced

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

[PATCH 2/4] misc: Add debug log condition to log output


From: Glenn Washburn
Subject: [PATCH 2/4] misc: Add debug log condition to log output
Date: Fri, 19 Mar 2021 22:06:47 -0500

When debugging using the "all" condition frequently gives way too much info.
So selecting a subset of conditions is desirable. This change makes it
easier to identify which conditions are desired. Before this change log
messages needed to be looked up in the source code to find the condition
used.

Signed-off-by: Glenn Washburn <development@efficientek.com>
---
 grub-core/kern/misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grub-core/kern/misc.c b/grub-core/kern/misc.c
index 3af336ee2..11b8592c8 100644
--- a/grub-core/kern/misc.c
+++ b/grub-core/kern/misc.c
@@ -182,7 +182,7 @@ grub_real_dprintf (const char *file, const int line, const 
char *condition,
 
   if (grub_debug_enabled (condition))
     {
-      grub_printf ("%s:%d: ", file, line);
+      grub_printf ("%s:%d:%s: ", file, line, condition);
       va_start (args, fmt);
       grub_vprintf (fmt, args);
       va_end (args);
-- 
2.27.0




reply via email to

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