]>
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>
16 IN CONST CHAR8
*Format
,
24 VA_START (Marker
, Format
);
25 Length
= AsciiVSPrint (String
, sizeof (String
), Format
, Marker
);
27 DEBUG ((DEBUG_ERROR
, "%a formatted string is too long\n", __FUNCTION__
));
29 DEBUG ((DEBUG_INFO
, 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 AsciiStrnCpyS (AsciiString
, sizeof (AsciiString
), &Output
[Index
], sizeof (AsciiString
) - 1);
46 DEBUG ((DEBUG_INFO
, AsciiString
));