diff options
author | Pete Batard <pete@akeo.ie> | 2021-02-16 19:05:43 +0000 |
---|---|---|
committer | Nigel Croxon <ncroxon@redhat.com> | 2021-02-18 10:11:44 -0500 |
commit | 0247cb7cd4024cf2ce45996c293be53e5b87c3cc (patch) | |
tree | 243ba1590e818cc4f44a4d4965db0a3b74ba5d6d /inc | |
parent | ebdde0bc4b0ea18620b92c84be85dfc55e0b75ed (diff) | |
download | gnu-efi-0247cb7cd4024cf2ce45996c293be53e5b87c3cc.tar.gz |
Add AsciiPrint and AsciiVSPrint
Per https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Library/PrintLib.h
AsciiPrint() is the official name of APrint() so declare it as such and define
an APrint alias for compatibility.
Also add an AsciiVSPrint() to print a formatted ASCII string to a buffer using
a va_list. AsciiPrint() too is defined in EDK2's PrintLib.h, though our implementation
just invokes the Unicode version and then converts the buffer to ASCII.
Diffstat (limited to 'inc')
-rw-r--r-- | inc/efilib.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/inc/efilib.h b/inc/efilib.h index ed332aa..40e3745 100644 --- a/inc/efilib.h +++ b/inc/efilib.h @@ -580,11 +580,22 @@ IPrintAt ( ); UINTN -APrint ( +AsciiPrint ( IN CONST CHAR8 *fmt, ... ); +/* For compatibility with previous versions */ +#define APrint AsciiPrint + +UINTN +AsciiVSPrint( + OUT CHAR8 *Str, + IN UINTN StrSize, + IN CONST CHAR8 *fmt, + va_list args +); + VOID ValueToHex ( IN CHAR16 *Buffer, |