grub-devel
[Top][All Lists]
Advanced

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

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


From: Glenn Washburn
Subject: [DEBUG 2/2] misc: Add debug log condition to log output
Date: Tue, 19 Oct 2021 01:47:03 -0500

Adding the conditional to debug log messages allows the grub user to
construct the $debug variable without needing to consult the source to
find the conditional (especially useful for situations where the source
is not readily available).

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 ecef4839e..17a907b63 100644
--- a/grub-core/kern/misc.c
+++ b/grub-core/kern/misc.c
@@ -197,7 +197,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]