efi/libstub: Implement printk-style logging
authorArvind Sankar <nivedita@alum.mit.edu>
Wed, 20 May 2020 17:07:54 +0000 (19:07 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 20 May 2020 17:08:19 +0000 (19:08 +0200)
commit23d5b73fbfd787c4c63841912b079eac000a7414
tree4fc961900e5b6f62e1e2c953c5b0e345a77cc24d
parent8fb331e10b63888e944a8a0dcf79b17e93b475ba
efi/libstub: Implement printk-style logging

Use the efi_printk function in efi_info/efi_err, and add efi_debug. This
allows formatted output at different log levels.

Add the notion of a loglevel instead of just quiet/not-quiet, and
parse the efi=debug kernel parameter in addition to quiet.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200520170223.GA3333632@rani.riverdale.lan/
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/efi-stub-helper.c
drivers/firmware/efi/libstub/efistub.h