Changeset 38352 in vbox for trunk/src/VBox/Storage/testcase
- Timestamp:
- Aug 8, 2011 2:04:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/testcase/vditool.cpp
r36344 r38352 92 92 } 93 93 94 static int NewImage(const char *pszFilename, uint 32_t cMBs)95 { 96 RTPrintf("Creating VDI: file=\"%s\" size=% uMB...\n",94 static int NewImage(const char *pszFilename, uint64_t cMBs) 95 { 96 RTPrintf("Creating VDI: file=\"%s\" size=%RU64MB...\n", 97 97 pszFilename, cMBs); 98 98 … … 408 408 return SyntaxError("Invalid argument count!"); 409 409 410 uint 32_t cMBs;411 rc = RTStrToUInt 32Ex(argv[3], NULL, 10, &cMBs);410 uint64_t cMBs; 411 rc = RTStrToUInt64Ex(argv[3], NULL, 10, &cMBs); 412 412 if (RT_FAILURE(rc)) 413 413 return SyntaxError("Invalid number!"); 414 if (cMBs < 2 || cMBs > _1M)414 if (cMBs < 2) 415 415 { 416 RTPrintf("error: Disk size %RU32 (MB) is not within the range %u-%u!\n", 417 cMBs, 2, _1M); 416 RTPrintf("error: Disk size %RU64MB must be at least 2MB!\n", cMBs); 418 417 return 1; 419 418 }
Note:
See TracChangeset
for help on using the changeset viewer.