efi/libstub: Make efi_printk() input argument const char*
authorArd Biesheuvel <ardb@kernel.org>
Tue, 5 May 2020 08:27:18 +0000 (10:27 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 5 May 2020 08:27:18 +0000 (10:27 +0200)
commit0b8d9fc9953fde4ea3eb3191d986ca2d01eb783c
treeadf26dface72e496c89289ad159de812afa79167
parentf77767ed5f4d398b29119563155e4ece2dfeee13
efi/libstub: Make efi_printk() input argument const char*

To help the compiler figure out that efi_printk() will not modify
the string it is given, make the input argument type const char*.

While at it, simplify the implementation as well.

Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/efi-stub-helper.c
drivers/firmware/efi/libstub/efistub.h