efi/boot: wrap PrintStr/PrintErr to allow const CHAR16* arguments
authorTrammell Hudson <hudson@trmm.net>
Wed, 30 Sep 2020 07:14:18 +0000 (09:14 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 30 Sep 2020 07:14:18 +0000 (09:14 +0200)
commitc73952831f0fc63a984e0d07dff1d20f8617b81f
tree927d1f0f6b2b13b04defbd628f8ac420cdfe8d80
parentd72d6153be68f45e8f1c1b9e025cbfa625bbef6d
efi/boot: wrap PrintStr/PrintErr to allow const CHAR16* arguments

This patch wraps the EFI OutputString() method so that they can be
called with const arguments.  The OutputString method does not modify
its argument, although the prototype is missing const, so it is necssary
to cast away the const when calling it.

Signed-off-by: Trammell Hudson <hudson@trmm.net>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/efi/boot.c