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>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
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);