Changeset 58153 in vbox
- Timestamp:
- Oct 9, 2015 1:42:14 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 103260
- Location:
- trunk/src/VBox/ValidationKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/VBoxBs2Linker.cpp
r57358 r58153 62 62 { 63 63 fprintf(stderr, "syntax errro: Unknown options '%s'\n", pszOpt); 64 free(papszInputs); 64 65 return 2; 65 66 } … … 206 207 } 207 208 209 fclose(pOutput); 208 210 return rcExit; 209 211 } -
trunk/src/VBox/ValidationKit/snippets/alloc-1.c
r57358 r58153 53 53 if (cb / (1024 * 1024) != cMBs) 54 54 cb = ~(unsigned long)0 / (1024 * 1024) * (1024 * 1024); 55 printf("alloc-1: allocating %l uMB (%lu bytes)\n", cb/1024/1024, cb);55 printf("alloc-1: allocating %ld 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 uMB (%lu bytes)\n",72 cbDone/1024/1024 /1024, cbDone);71 printf("\nalloc-1: calloc failed, cbDone=%ld MB (%lu bytes)\n", 72 cbDone/1024/1024, cbDone); 73 73 return 1; 74 74 } -
trunk/src/VBox/ValidationKit/snippets/time-1.c
r57358 r58153 72 72 { 73 73 #ifdef USE_CLOCK_MONOTONIC 74 printf("tv_nsec in the past: %ld.%09 d < %ld.%09d - %unsec\n",74 printf("tv_nsec in the past: %ld.%09u < %ld.%09u - %d nsec\n", 75 75 (long)pCur->tv_sec, (unsigned)pCur->tv_nsec, 76 76 (long)pPrev->tv_sec, (unsigned)pPrev->tv_nsec, 77 77 (unsigned)pPrev->tv_nsec - (unsigned)pCur->tv_nsec); 78 78 #else 79 printf("tv_usec in the past: %ld.%06 d < %ld.%06d - %uusec\n",79 printf("tv_usec in the past: %ld.%06u < %ld.%06u - %d usec\n", 80 80 (long)pCur->tv_sec, (unsigned)pCur->tv_usec, 81 81 (long)pPrev->tv_sec, (unsigned)pPrev->tv_usec, … … 89 89 { 90 90 #ifdef USE_CLOCK_MONOTONIC 91 printf("tv_sec in the past: %ld.%09 d < %ld.%09d\n",91 printf("tv_sec in the past: %ld.%09u < %ld.%09u\n", 92 92 (long)pCur->tv_sec, (unsigned)pCur->tv_nsec, 93 93 (long)pPrev->tv_sec, (unsigned)pPrev->tv_nsec); 94 94 #else 95 printf("tv_sec in the past: %ld.%06 d < %ld.%06d\n",95 printf("tv_sec in the past: %ld.%06u < %ld.%06u\n", 96 96 (long)pCur->tv_sec, (unsigned)pCur->tv_usec, 97 97 (long)pPrev->tv_sec, (unsigned)pPrev->tv_usec);
Note:
See TracChangeset
for help on using the changeset viewer.