]>
git.proxmox.com Git - mirror_edk2.git/blob - UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibConOut.c
db5402d6a2109313683875b377aa9f54cf1b0c7d
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>
17 IN CONST CHAR8
*Format
,
25 VA_START (Marker
, Format
);
26 Length
= UnicodeVSPrintAsciiFormat (String
, sizeof (String
), Format
, Marker
);
28 DEBUG ((DEBUG_ERROR
, "%a formatted string is too long\n", __FUNCTION__
));
30 gST
->ConOut
->OutputString (gST
->ConOut
, String
);
37 IN CONST CHAR8
*Output
40 CHAR8 AsciiString
[128];
44 Length
= AsciiStrLen (Output
);
45 for (Index
= 0; Index
< Length
; Index
+= (sizeof (AsciiString
) - 1)) {
46 AsciiStrnCpyS (AsciiString
, sizeof (AsciiString
), &Output
[Index
], sizeof (AsciiString
) - 1);
47 ReportPrint ("%a", AsciiString
);