]>
git.proxmox.com Git - mirror_edk2.git/blob - UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibConOut.c
2 Implement UnitTestResultReportLib doing plain txt out to console
4 Copyright (c) Microsoft Corporation.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include <Library/BaseLib.h>
10 #include <Library/PrintLib.h>
11 #include <Library/UefiBootServicesTableLib.h>
12 #include <Library/DebugLib.h>
16 IN CONST CHAR8
*Format
,
24 VA_START (Marker
, Format
);
25 Length
= UnicodeVSPrintAsciiFormat (String
, sizeof (String
), Format
, Marker
);
27 DEBUG ((DEBUG_ERROR
, "%a formatted string is too long\n", __FUNCTION__
));
29 gST
->ConOut
->OutputString (gST
->ConOut
, String
);
36 IN CONST CHAR8
*Output
39 CHAR8 AsciiString
[128];
43 Length
= AsciiStrLen (Output
);
44 for (Index
= 0; Index
< Length
; Index
+= (sizeof (AsciiString
) - 1)) {
45 AsciiStrCpyS (AsciiString
, sizeof (AsciiString
), &Output
[Index
]);
46 ReportPrint ("%a", AsciiString
);