VirtualBox

Ignore:
Timestamp:
Jul 9, 2008 2:11:09 PM (16 years ago)
Author:
vboxsync
Message:

Print online / offline status returned by RTMpIsCpuOnline for visual confirmation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstMp-1.cpp

    r10426 r10428  
    8585            if (RTCpuSetIsMemberByIndex(&Set, iCpu))
    8686            {
    87                 RTPrintf("tstMp-1: %2d - id %d: %u/%u MHz\n", iCpu, idCpu, RTMpGetCurFrequency(idCpu), RTMpGetMaxFrequency(idCpu));
     87                RTPrintf("tstMp-1: %2d - id %d: %u/%u MHz %s\n", iCpu, (int)idCpu, RTMpGetCurFrequency(idCpu),
     88                         RTMpGetMaxFrequency(idCpu), RTMpIsCpuOnline(idCpu) ? "online" : "offline");
    8889                if (!RTMpIsCpuPossible(idCpu))
    8990                {
     
    159160            {
    160161                RTCPUID idCpu = RTMpCpuIdFromSetIndex(iCpu);
    161                 RTPrintf("tstMp-1: %2d - id %d: %u/%u MHz\n", iCpu, idCpu, RTMpGetCurFrequency(idCpu), RTMpGetMaxFrequency(idCpu));
     162                RTPrintf("tstMp-1: %2d - id %d: %u/%u MHz %s\n", iCpu, (int)idCpu, RTMpGetCurFrequency(idCpu),
     163                         RTMpGetMaxFrequency(idCpu), RTMpIsCpuOnline(idCpu) ? "online" : "offline");
    162164                if (!RTCpuSetIsMemberByIndex(&Set, iCpu))
    163165                {
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