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 <developm...@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 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel