]>
git.proxmox.com Git - mirror_edk2.git/blob - UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibDebugLib.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/DebugLib.h>
15 IN CONST CHAR8
*Format
,
23 VA_START (Marker
, Format
);
24 Length
= AsciiVSPrint (String
, sizeof (String
), Format
, Marker
);
26 DEBUG ((DEBUG_ERROR
, "%a formatted string is too long\n", __FUNCTION__
));
28 DEBUG ((DEBUG_INFO
, String
));
35 IN CONST CHAR8
*Output
38 CHAR8 AsciiString
[128];
42 Length
= AsciiStrLen (Output
);
43 for (Index
= 0; Index
< Length
; Index
+= (sizeof (AsciiString
) - 1)) {
44 AsciiStrCpyS (AsciiString
, sizeof (AsciiString
), &Output
[Index
]);
45 DEBUG ((DEBUG_INFO
, AsciiString
));