From: Glenn Washburn Date: Tue, 19 Oct 2021 06:47:03 +0000 (-0500) Subject: kern/misc: Add debug log condition to log output X-Git-Tag: grub-2.12-rc1~536 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50aace6bdb918150ba47e3c16146dcca271c134a;p=thirdparty%2Fgrub.git kern/misc: Add debug log condition to log output 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 Reviewed-by: Daniel Kiper --- 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);