VirtualBox

Ignore:
Timestamp:
Feb 9, 2010 1:57:59 PM (15 years ago)
Author:
vboxsync
Message:

VBoxManageControlVM: build fix (no printf).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp

    r26368 r26371  
    831831
    832832                if (guest->GetStatistic(0, GuestStatisticType_SampleNumber, &StatVal) == S_OK)
    833                     printf("Statistics sample:      %d\n", StatVal);
     833                    RTPrintf("Statistics sample:      %u\n", StatVal);
    834834                if (guest->GetStatistic(0, GuestStatisticType_CPULoad_Idle, &StatVal) == S_OK)
    835                     printf("CPU load idle:          %d%%\n", StatVal);
     835                    RTPrintf("CPU load idle:          %u%%\n", StatVal);
    836836                if (guest->GetStatistic(0, GuestStatisticType_CPULoad_Kernel, &StatVal) == S_OK)
    837                     printf("CPU load kernel:        %d%%\n", StatVal);
     837                    RTPrintf("CPU load kernel:        %u%%\n", StatVal);
    838838                if (guest->GetStatistic(0, GuestStatisticType_CPULoad_User, &StatVal) == S_OK)
    839                     printf("CPU load user:          %d%%\n", StatVal);
     839                    RTPrintf("CPU load user:          %u%%\n", StatVal);
    840840                if (guest->GetStatistic(0, GuestStatisticType_Threads, &StatVal) == S_OK)
    841                     printf("Nr. of threads:         %d\n", StatVal);
     841                    RTPrintf("Nr. of threads:         %u\n", StatVal);
    842842                if (guest->GetStatistic(0, GuestStatisticType_Processes, &StatVal) == S_OK)
    843                     printf("Nr. of processes:       %d\n", StatVal);
     843                    RTPrintf("Nr. of processes:       %u\n", StatVal);
    844844                if (guest->GetStatistic(0, GuestStatisticType_Handles, &StatVal) == S_OK)
    845                     printf("Nr. of handles:         %d\n", StatVal);
     845                    RTPrintf("Nr. of handles:         %u\n", StatVal);
    846846                if (guest->GetStatistic(0, GuestStatisticType_MemoryLoad, &StatVal) == S_OK)
    847                     printf("Memory load:            %d\n", StatVal);
     847                    RTPrintf("Memory load:            %u\n", StatVal);
    848848                if (guest->GetStatistic(0, GuestStatisticType_PhysMemTotal, &StatVal) == S_OK)
    849                     printf("Total phys. memory:     %dMB\n", StatVal);
     849                    RTPrintf("Total phys. memory:     %uMB\n", StatVal);
    850850                if (guest->GetStatistic(0, GuestStatisticType_PhysMemAvailable, &StatVal) == S_OK)
    851                     printf("Available phys. memory: %dMB\n", StatVal);
     851                    RTPrintf("Available phys. memory: %uMB\n", StatVal);
    852852                if (guest->GetStatistic(0, GuestStatisticType_PhysMemBalloon, &StatVal) == S_OK)
    853                     printf("Balloon size:           %dMB\n", StatVal);
     853                    RTPrintf("Balloon size:           %uMB\n", StatVal);
    854854                if (guest->GetStatistic(0, GuestStatisticType_MemCommitTotal, &StatVal) == S_OK)
    855                     printf("Total memory commit:    %dMB\n", StatVal);
     855                    RTPrintf("Total memory commit:    %uMB\n", StatVal);
    856856                if (guest->GetStatistic(0, GuestStatisticType_MemKernelTotal, &StatVal) == S_OK)
    857                     printf("Kernel memory:          %dMB\n", StatVal);
     857                    RTPrintf("Kernel memory:          %uMB\n", StatVal);
    858858                if (guest->GetStatistic(0, GuestStatisticType_MemKernelPaged, &StatVal) == S_OK)
    859                     printf("Paged kernel mem:       %dMB\n", StatVal);
     859                    RTPrintf("Paged kernel mem:       %uMB\n", StatVal);
    860860                if (guest->GetStatistic(0, GuestStatisticType_MemKernelNonpaged, &StatVal) == S_OK)
    861                     printf("Locked kernel mem:      %dMB\n", StatVal);
     861                    RTPrintf("Locked kernel mem:      %uMB\n", StatVal);
    862862                if (guest->GetStatistic(0, GuestStatisticType_MemSystemCache, &StatVal) == S_OK)
    863                     printf("System cache:          %dMB\n", StatVal);
     863                    RTPrintf("System cache:          %uMB\n", StatVal);
    864864                if (guest->GetStatistic(0, GuestStatisticType_PageFileSize, &StatVal) == S_OK)
    865                     printf("Page file size:        %dMB\n", StatVal);
     865                    RTPrintf("Page file size:        %uMB\n", StatVal);
    866866            }
    867867        }
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