Changeset 62041 in vbox for trunk/src/VBox/ValidationKit/snippets/alloc-1.c
- Timestamp:
- Jul 6, 2016 10:55:13 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/snippets/alloc-1.c
r58153 r62041 53 53 if (cb / (1024 * 1024) != cMBs) 54 54 cb = ~(unsigned long)0 / (1024 * 1024) * (1024 * 1024); 55 printf("alloc-1: allocating %l dMB (%lu bytes)\n", cb/1024/1024, cb);55 printf("alloc-1: allocating %lu MB (%lu bytes)\n", cb/1024/1024, cb); 56 56 57 57 /* … … 69 69 if (!pb) 70 70 { 71 printf("\nalloc-1: calloc failed, cbDone=%l dMB (%lu bytes)\n",71 printf("\nalloc-1: calloc failed, cbDone=%lu MB (%lu bytes)\n", 72 72 cbDone/1024/1024, cbDone); 73 73 return 1; … … 88 88 { 89 89 if (!(uPctNow % 10)) 90 printf("%u%%", (unsigned)uPctNow);90 printf("%u%%", uPctNow); 91 91 else 92 92 printf(".");
Note:
See TracChangeset
for help on using the changeset viewer.