VirtualBox

Ignore:
Timestamp:
Sep 28, 2013 3:41:58 AM (11 years ago)
Author:
vboxsync
Message:

EFI: Simplified VBoxLogWorker.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.c

    r48748 r48750  
    9191    CHAR8       szBuf[384];
    9292    VA_LIST     va;
    93     UINTN       cch;
    9493    RTCCUINTREG SavedFlags;
    9594
     95    /* Format it. */
    9696    VA_START(va, pszFormat);
    97     cch = AsciiVSPrint(szBuf, sizeof(szBuf), pszFormat, va);
     97    AsciiVSPrint(szBuf, sizeof(szBuf), pszFormat, va);
    9898    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';
    106100
    107101    /* Output the log string. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette