VirtualBox

Changeset 83828 in vbox


Ignore:
Timestamp:
Apr 19, 2020 1:01:40 PM (5 years ago)
Author:
vboxsync
Message:

Main/tstCAPIGlue: VC++ 14.1 warnings - build fixes. bugref:8489

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/cbinding/tstCAPIGlue.c

    r83820 r83828  
    137137    if (FAILED(rc))
    138138    {
    139         printf("cannot get event type, rc=%#lx\n", rc);
     139        printf("cannot get event type, rc=%#x\n", (unsigned)rc);
    140140        return S_OK;
    141141    }
     
    162162            if (FAILED(rc))
    163163            {
    164                 printf("cannot get StateChangedEvent interface, rc=%#lx\n", rc);
     164                printf("cannot get StateChangedEvent interface, rc=%#x\n", (unsigned)rc);
    165165                return S_OK;
    166166            }
     
    172172            rc = IStateChangedEvent_get_State(ev, &state);
    173173            if (FAILED(rc))
    174                 printf("warning: cannot get state, rc=%#lx\n", rc);
     174                printf("warning: cannot get state, rc=%#x\n", (unsigned)rc);
    175175            IStateChangedEvent_Release(ev);
    176176            printf("OnStateChanged: %s\n", GetStateName(state));
     
    621621                        if (FAILED(rc))
    622622                        {
    623                             printf("Failed getting event: %#lx\n", rc);
     623                            printf("Failed getting event: %#x\n", (unsigned)rc);
    624624                            g_fStop = 1;
    625625                            continue;
     
    631631                        if (FAILED(rc))
    632632                        {
    633                             printf("Failed processing event: %#lx\n", rc);
     633                            printf("Failed processing event: %#x\n", (unsigned)rc);
    634634                            g_fStop = 1;
    635635                            /* finish processing the event */
     
    638638                        if (FAILED(rc))
    639639                        {
    640                             printf("Failed to mark event as processed: %#lx\n", rc);
     640                            printf("Failed to mark event as processed: %#x\n", (unsigned)rc);
    641641                            g_fStop = 1;
    642642                            /* continue with event release */
     
    771771            char *group;
    772772            g_pVBoxFuncs->pfnUtf16ToUtf8(groups[i], &group);
    773             printf("Groups[%lu]: %s\n", i, group);
     773            printf("Groups[%u]: %s\n", (unsigned)i, group);
    774774            g_pVBoxFuncs->pfnUtf8Free(group);
    775775        }
     
    933933
    934934                IMachine_get_MemorySize(machine, &memorySize);
    935                 printf("\tMemory size: %luMB\n", memorySize);
     935                printf("\tMemory size: %uMB\n", (unsigned)memorySize);
    936936            }
    937937
     
    10611061    rc = IVirtualBox_get_Revision(vbox, &revision);
    10621062    if (SUCCEEDED(rc))
    1063         printf("\tRevision: %lu\n", revision);
     1063        printf("\tRevision: %u\n", (unsigned)revision);
    10641064    else
    10651065        PrintErrorInfo(argv[0], "GetRevision() failed", rc);
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