]> git.ipfire.org Git - thirdparty/grub.git/commit
kern: Include function name on debug and error print functions
authorLeo Sandoval <lsandova@redhat.com>
Tue, 23 Sep 2025 23:33:32 +0000 (17:33 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Sat, 11 Oct 2025 13:36:53 +0000 (15:36 +0200)
commit894241c8543eb0dd27b16962a640f38e9b0c6e19
treea9a2d42f88100f08e8057fcda9f9d555b6af4bdb
parent75a20cc1449b8b5176b8d93189a2d559a5415ad6
kern: Include function name on debug and error print functions

With the following change, we see standard (grub_dprintf) and
error (grub_error) logs with the function name embedded (see below)
into the log which is particular useful when debugging:

  commands/efi/tpm.c:grub_tpm_measure:281:tpm: log_event, pcr = 8, size = 0xb,

Including one more field on the print log impacts the binary sizes
and in turn their respective distro packages. For Fedora rpm packages
the increase is 20k approximately.

Signed-off-by: Leo Sandoval <lsandova@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/err.c
grub-core/kern/misc.c
include/grub/err.h
include/grub/misc.h