Changeset 48750 in vbox for trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/Library/VBoxDebugLib
- Timestamp:
- Sep 28, 2013 3:41:58 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.c
r48748 r48750 91 91 CHAR8 szBuf[384]; 92 92 VA_LIST va; 93 UINTN cch;94 93 RTCCUINTREG SavedFlags; 95 94 95 /* Format it. */ 96 96 VA_START(va, pszFormat); 97 cch =AsciiVSPrint(szBuf, sizeof(szBuf), pszFormat, va);97 AsciiVSPrint(szBuf, sizeof(szBuf), pszFormat, va); 98 98 VA_END(va); 99 100 /* make sure it's terminated and doesn't end with a newline */ 101 if (cch >= sizeof(szBuf)) 102 cch = sizeof(szBuf) - 1; 103 while (cch > 0 && (szBuf[cch - 1] == '\n' || szBuf[cch - 1] == '\r')) 104 cch--; 105 szBuf[cch] = '\0'; 99 szBuf[sizeof(szBuf) - 1] = '\0'; 106 100 107 101 /* Output the log string. */
Note:
See TracChangeset
for help on using the changeset viewer.