VirtualBox

Changeset 81486 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 23, 2019 10:36:48 AM (5 years ago)
Author:
vboxsync
Message:

PDMR3Task.cpp: Fix format strings causing crashes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PDMR3Task.cpp

    r81413 r81486  
    5757                            " Hnd:   State     Type   pfnCallback      pvUser           Flags  Name\n",
    5858                            i, pTaskSet->uHandleBase, ASMAtomicReadU64(&pTaskSet->fTriggered),
    59                             (int)ASMAtomicReadU32(&pTaskSet->idxRunning),
    6059                            pTaskSet->fRZEnabled ? " RZ-enabled" : "", pTaskSet->hThread != NIL_RTTHREAD ? "" : " no-thread",
    61                             pTaskSet->cAllocated, RT_ELEMENTS(pTaskSet->aTasks));
     60                            (int)ASMAtomicReadU32(&pTaskSet->idxRunning), pTaskSet->cAllocated, RT_ELEMENTS(pTaskSet->aTasks));
    6261            for (unsigned j = 0; j < RT_ELEMENTS(pTaskSet->aTasks); j++)
    6362            {
     
    7473                        default:                    pszType = "unknown "; break;
    7574                    }
    76                     pHlp->pfnPrintf(pHlp, " %3u: %s %s %p %p %#06 %s\n", pTaskSet->uHandleBase + j,
     75                    pHlp->pfnPrintf(pHlp, " %3u: %s %s %p %p %#RX32 %s\n", pTaskSet->uHandleBase + j,
    7776                                    ASMBitTest(&pTaskSet->fTriggered, j) ? "triggered"
    7877                                    : ASMAtomicReadU32(&pTaskSet->idxRunning) == j  ? " running " : "  idle   ",
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