Changeset 83828 in vbox
- Timestamp:
- Apr 19, 2020 1:01:40 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/cbinding/tstCAPIGlue.c
r83820 r83828 137 137 if (FAILED(rc)) 138 138 { 139 printf("cannot get event type, rc=%# lx\n",rc);139 printf("cannot get event type, rc=%#x\n", (unsigned)rc); 140 140 return S_OK; 141 141 } … … 162 162 if (FAILED(rc)) 163 163 { 164 printf("cannot get StateChangedEvent interface, rc=%# lx\n",rc);164 printf("cannot get StateChangedEvent interface, rc=%#x\n", (unsigned)rc); 165 165 return S_OK; 166 166 } … … 172 172 rc = IStateChangedEvent_get_State(ev, &state); 173 173 if (FAILED(rc)) 174 printf("warning: cannot get state, rc=%# lx\n",rc);174 printf("warning: cannot get state, rc=%#x\n", (unsigned)rc); 175 175 IStateChangedEvent_Release(ev); 176 176 printf("OnStateChanged: %s\n", GetStateName(state)); … … 621 621 if (FAILED(rc)) 622 622 { 623 printf("Failed getting event: %# lx\n",rc);623 printf("Failed getting event: %#x\n", (unsigned)rc); 624 624 g_fStop = 1; 625 625 continue; … … 631 631 if (FAILED(rc)) 632 632 { 633 printf("Failed processing event: %# lx\n",rc);633 printf("Failed processing event: %#x\n", (unsigned)rc); 634 634 g_fStop = 1; 635 635 /* finish processing the event */ … … 638 638 if (FAILED(rc)) 639 639 { 640 printf("Failed to mark event as processed: %# lx\n",rc);640 printf("Failed to mark event as processed: %#x\n", (unsigned)rc); 641 641 g_fStop = 1; 642 642 /* continue with event release */ … … 771 771 char *group; 772 772 g_pVBoxFuncs->pfnUtf16ToUtf8(groups[i], &group); 773 printf("Groups[% lu]: %s\n",i, group);773 printf("Groups[%u]: %s\n", (unsigned)i, group); 774 774 g_pVBoxFuncs->pfnUtf8Free(group); 775 775 } … … 933 933 934 934 IMachine_get_MemorySize(machine, &memorySize); 935 printf("\tMemory size: % luMB\n",memorySize);935 printf("\tMemory size: %uMB\n", (unsigned)memorySize); 936 936 } 937 937 … … 1061 1061 rc = IVirtualBox_get_Revision(vbox, &revision); 1062 1062 if (SUCCEEDED(rc)) 1063 printf("\tRevision: % lu\n",revision);1063 printf("\tRevision: %u\n", (unsigned)revision); 1064 1064 else 1065 1065 PrintErrorInfo(argv[0], "GetRevision() failed", rc);
Note:
See TracChangeset
for help on using the changeset viewer.