Support compile time argument consistency checking for functions that
accept a PrintLib format string followed by a variable argument list.
Macro 'EFIFORMAT' added to the function prototype accepts a single
argument indicating which function argument holds the format string.
The EFIFORMAT macro assumes the variable argument list immediately
follows the format string. Format string argument checking requires
a compiler that understands EDK2 format strings, such as GCC with
the gcc_format from BaseTools/gcc applied.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Scott Duplichan <sc...@notabs.org>
---


 Vlv2TbltDevicePkg/Include/FileHandleLib.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Vlv2TbltDevicePkg/Include/FileHandleLib.h 
b/Vlv2TbltDevicePkg/Include/FileHandleLib.h
index 59d1b92..85622a0 100644
--- a/Vlv2TbltDevicePkg/Include/FileHandleLib.h
+++ b/Vlv2TbltDevicePkg/Include/FileHandleLib.h
@@ -476,6 +476,7 @@ FileHandleWriteLine(
 **/
 EFI_STATUS
 EFIAPI
+EFIFORMAT (2)
 FileHandlePrintLine(
   IN EFI_FILE_HANDLE  Handle,
   IN CONST CHAR16     *Format,


_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to