Changeset 13837 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Nov 5, 2008 2:54:02 AM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp
r13835 r13837 322 322 } 323 323 else 324 RTPrintf("error: failed to delete key '%s' from '%s', string conversion error % Vrc!\n",324 RTPrintf("error: failed to delete key '%s' from '%s', string conversion error %Rrc!\n", 325 325 pszKey, pszKeyBase, rc); 326 326 … … 424 424 int rc = RTStrToInt64Ex(argv[2], NULL, 0, &offDelta); 425 425 if (RT_FAILURE(rc)) 426 return errorArgument(argv[0], "Failed to read delta '%s', rc=% Vrc\n", argv[2], rc);426 return errorArgument(argv[0], "Failed to read delta '%s', rc=%Rrc\n", argv[2], rc); 427 427 } 428 428 … … 436 436 int rc = RTStrToUInt64Ex(argv[4], NULL, 0, &ModuleAddress); 437 437 if (RT_FAILURE(rc)) 438 return errorArgument(argv[0], "Failed to read module address '%s', rc=% Vrc\n", argv[4], rc);438 return errorArgument(argv[0], "Failed to read module address '%s', rc=%Rrc\n", argv[4], rc); 439 439 } 440 440 … … 444 444 int rc = RTStrToUInt64Ex(argv[5], NULL, 0, &ModuleSize); 445 445 if (RT_FAILURE(rc)) 446 return errorArgument(argv[0], "Failed to read module size '%s', rc=% Vrc\n", argv[5], rc);446 return errorArgument(argv[0], "Failed to read module size '%s', rc=%Rrc\n", argv[5], rc); 447 447 } 448 448 … … 482 482 if (RT_FAILURE(rc)) 483 483 { 484 RTPrintf("Error while setting a new UUID: % Vrc (%d)\n", rc, rc);484 RTPrintf("Error while setting a new UUID: %Rrc (%d)\n", rc, rc); 485 485 } 486 486 else … … 498 498 RTPrintfV(pszFormat, va); 499 499 RTPrintf("\n"); 500 RTPrintf("Error code % Vrc at %s(%u) in function %s\n", rc, RT_SRC_POS_ARGS);500 RTPrintf("Error code %Rrc at %s(%u) in function %s\n", rc, RT_SRC_POS_ARGS); 501 501 } 502 502 … … 706 706 if (RT_FAILURE(vrc)) 707 707 { 708 RTPrintf("Error opening the raw disk: % Vrc\n", vrc);708 RTPrintf("Error opening the raw disk: %Rrc\n", vrc); 709 709 return vrc; 710 710 } … … 823 823 if (RT_FAILURE(vrc)) 824 824 { 825 RTPrintf("Error opening the raw disk '%s': % Vrc\n", rawdisk.raw(), vrc);825 RTPrintf("Error opening the raw disk '%s': %Rrc\n", rawdisk.raw(), vrc); 826 826 goto out; 827 827 } … … 870 870 { 871 871 vrc = RTErrConvertFromWin32(GetLastError()); 872 RTPrintf("Error getting the geometry of the raw disk '%s': % Vrc\n", rawdisk.raw(), vrc);872 RTPrintf("Error getting the geometry of the raw disk '%s': %Rrc\n", rawdisk.raw(), vrc); 873 873 goto out; 874 874 } … … 898 898 { 899 899 vrc = RTErrConvertFromErrno(errno); 900 RTPrintf("Error getting the size of the raw disk '%s': % Vrc\n", rawdisk.raw(), vrc);900 RTPrintf("Error getting the size of the raw disk '%s': %Rrc\n", rawdisk.raw(), vrc); 901 901 goto out; 902 902 } … … 921 921 else 922 922 { 923 RTPrintf("Cannot get the block size for file '%s': % Vrc", rawdisk.raw(), vrc);923 RTPrintf("Cannot get the block size for file '%s': %Rrc", rawdisk.raw(), vrc); 924 924 vrc = RTErrConvertFromErrno(errno); 925 925 goto out; … … 929 929 { 930 930 vrc = RTErrConvertFromErrno(errno); 931 RTPrintf("Cannot get the block count for file '%s': % Vrc", rawdisk.raw(), vrc);931 RTPrintf("Cannot get the block count for file '%s': %Rrc", rawdisk.raw(), vrc); 932 932 goto out; 933 933 } … … 950 950 { 951 951 vrc = RTErrConvertFromErrno(errno); 952 RTPrintf("Error getting the size of the raw disk '%s': % Vrc\n", rawdisk.raw(), vrc);952 RTPrintf("Error getting the size of the raw disk '%s': %Rrc\n", rawdisk.raw(), vrc); 953 953 goto out; 954 954 } … … 966 966 if (RT_FAILURE(vrc)) 967 967 { 968 RTPrintf("Error getting the size of the raw disk '%s': % Vrc\n", rawdisk.raw(), vrc);968 RTPrintf("Error getting the size of the raw disk '%s': %Rrc\n", rawdisk.raw(), vrc); 969 969 goto out; 970 970 } … … 1061 1061 if (RT_FAILURE(vrc)) 1062 1062 { 1063 RTPrintf("Error creating reference to individual partition %u, rc=% Vrc\n",1063 RTPrintf("Error creating reference to individual partition %u, rc=%Rrc\n", 1064 1064 partitions.aPartitions[i].uIndex, vrc); 1065 1065 goto out; … … 1122 1122 if (RT_FAILURE(vrc)) 1123 1123 { 1124 RTPrintf("Cannot read partition data from raw device '%s': % Vrc\n", rawdisk.raw(), vrc);1124 RTPrintf("Cannot read partition data from raw device '%s': %Rrc\n", rawdisk.raw(), vrc); 1125 1125 goto out; 1126 1126 } … … 1133 1133 if (RT_FAILURE(vrc)) 1134 1134 { 1135 RTPrintf("Cannot open replacement MBR file '%s' specified with -mbr: % Vrc\n", pszMBRFilename, vrc);1135 RTPrintf("Cannot open replacement MBR file '%s' specified with -mbr: %Rrc\n", pszMBRFilename, vrc); 1136 1136 goto out; 1137 1137 } … … 1140 1140 if (RT_FAILURE(vrc)) 1141 1141 { 1142 RTPrintf("Cannot read replacement MBR file '%s': % Vrc\n", pszMBRFilename, vrc);1142 RTPrintf("Cannot read replacement MBR file '%s': %Rrc\n", pszMBRFilename, vrc); 1143 1143 goto out; 1144 1144 } … … 1164 1164 if (RT_FAILURE(vrc)) 1165 1165 { 1166 RTPrintf("Error while creating the virtual disk container: % Vrc\n", vrc);1166 RTPrintf("Error while creating the virtual disk container: %Rrc\n", vrc); 1167 1167 goto out; 1168 1168 } … … 1183 1183 if (RT_FAILURE(vrc)) 1184 1184 { 1185 RTPrintf("Error while creating the raw disk VMDK: % Vrc\n", vrc);1185 RTPrintf("Error while creating the raw disk VMDK: %Rrc\n", vrc); 1186 1186 goto out; 1187 1187 } … … 1273 1273 if (RT_FAILURE(vrc)) 1274 1274 { 1275 RTPrintf("Error while creating the virtual disk container: % Vrc\n", vrc);1275 RTPrintf("Error while creating the virtual disk container: %Rrc\n", vrc); 1276 1276 return vrc; 1277 1277 } … … 1281 1281 if (RT_FAILURE(vrc)) 1282 1282 { 1283 RTPrintf("Error while opening the source image: % Vrc\n", vrc);1283 RTPrintf("Error while opening the source image: %Rrc\n", vrc); 1284 1284 } 1285 1285 else … … 1288 1288 if (RT_FAILURE(vrc)) 1289 1289 { 1290 RTPrintf("Error while renaming the image: % Vrc\n", vrc);1290 RTPrintf("Error while renaming the image: %Rrc\n", vrc); 1291 1291 } 1292 1292 } … … 1354 1354 if (RT_FAILURE(vrc)) 1355 1355 { 1356 RTPrintf("Error while creating the virtual disk container: % Vrc\n", vrc);1356 RTPrintf("Error while creating the virtual disk container: %Rrc\n", vrc); 1357 1357 return 1; 1358 1358 } … … 1368 1368 { 1369 1369 VDCloseAll(pDisk); 1370 RTPrintf("Error while creating destination file \"%s\": % Vrc\n", Utf8Str(dst).raw(), vrc);1370 RTPrintf("Error while creating destination file \"%s\": %Rrc\n", Utf8Str(dst).raw(), vrc); 1371 1371 return 1; 1372 1372 } … … 1384 1384 RTFileDelete(Utf8Str(dst).raw()); 1385 1385 } 1386 RTPrintf("No file format specified and autodetect failed - please specify format: % Vrc\n", vrc);1386 RTPrintf("No file format specified and autodetect failed - please specify format: %Rrc\n", vrc); 1387 1387 return 1; 1388 1388 } … … 1399 1399 RTFileDelete(Utf8Str(dst).raw()); 1400 1400 } 1401 RTPrintf("Error while opening the source image: % Vrc\n", vrc);1401 RTPrintf("Error while opening the source image: %Rrc\n", vrc); 1402 1402 return 1; 1403 1403 } … … 1430 1430 RTFileDelete(Utf8Str(dst).raw()); 1431 1431 } 1432 RTPrintf("Error copying image data: % Vrc\n", vrc);1432 RTPrintf("Error copying image data: %Rrc\n", vrc); 1433 1433 return 1; 1434 1434 } … … 1443 1443 RTFileDelete(Utf8Str(dst).raw()); 1444 1444 } 1445 RTPrintf("Error allocating read buffer: % Vrc\n", vrc);1445 RTPrintf("Error allocating read buffer: %Rrc\n", vrc); 1446 1446 return 1; 1447 1447 } … … 1524 1524 if (RT_FAILURE(vrc)) 1525 1525 { 1526 RTPrintf("No file format specified and autodetect failed - please specify format: % Vrc\n", vrc);1526 RTPrintf("No file format specified and autodetect failed - please specify format: %Rrc\n", vrc); 1527 1527 break; 1528 1528 } … … 1534 1534 if (RT_FAILURE(vrc)) 1535 1535 { 1536 RTPrintf("Error while creating the source virtual disk container: % Vrc\n", vrc);1536 RTPrintf("Error while creating the source virtual disk container: %Rrc\n", vrc); 1537 1537 break; 1538 1538 } … … 1542 1542 if (RT_FAILURE(vrc)) 1543 1543 { 1544 RTPrintf("Error while opening the source image: % Vrc\n", vrc);1544 RTPrintf("Error while opening the source image: %Rrc\n", vrc); 1545 1545 break; 1546 1546 } … … 1553 1553 if (RT_FAILURE(vrc)) 1554 1554 { 1555 RTPrintf("Error while creating the destination virtual disk container: % Vrc\n", vrc);1555 RTPrintf("Error while creating the destination virtual disk container: %Rrc\n", vrc); 1556 1556 break; 1557 1557 } … … 1565 1565 if (RT_FAILURE(vrc)) 1566 1566 { 1567 RTPrintf("Error while copying the image: % Vrc\n", vrc);1567 RTPrintf("Error while copying the image: %Rrc\n", vrc); 1568 1568 break; 1569 1569 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r13835 r13837 3351 3351 if (RT_FAILURE(vrc)) 3352 3352 { 3353 RTPrintf("Error while shrinking hard disk image: % Vrc\n", vrc);3353 RTPrintf("Error while shrinking hard disk image: %Rrc\n", vrc); 3354 3354 rc = E_FAIL; 3355 3355 } … … 3497 3497 { 3498 3498 /* delete image on error */ 3499 RTPrintf("Failed (% Vrc)!\n", rc);3499 RTPrintf("Failed (%Rrc)!\n", rc); 3500 3500 VDIDeleteImage(argv[arg + 1]); 3501 3501 } 3502 3502 } 3503 3503 else 3504 RTPrintf("Failed to create output file (% Vrc)!\n", rc);3504 RTPrintf("Failed to create output file (%Rrc)!\n", rc); 3505 3505 } 3506 3506 RTFileClose(File); … … 5727 5727 if (RT_FAILURE (rc)) 5728 5728 { 5729 RTPrintf("Error: converting '%s' returned % Vrc!\n", argv[i], rc);5729 RTPrintf("Error: converting '%s' returned %Rrc!\n", argv[i], rc); 5730 5730 rc = E_FAIL; 5731 5731 break;
Note:
See TracChangeset
for help on using the changeset viewer.