Changeset 31542 in vbox
- Timestamp:
- Aug 10, 2010 4:22:51 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 64642
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp
r31539 r31542 1018 1018 else 1019 1019 { 1020 RTPrintf("File '%s' is no fixed/removable medium device\n", rawdisk. raw());1020 RTPrintf("File '%s' is no fixed/removable medium device\n", rawdisk.c_str()); 1021 1021 vrc = VERR_INVALID_PARAMETER; 1022 1022 goto out; … … 1036 1036 { 1037 1037 vrc = RTErrConvertFromWin32(GetLastError()); 1038 RTPrintf("Error getting the geometry of the raw disk '%s': %Rrc\n", rawdisk. raw(), vrc);1038 RTPrintf("Error getting the geometry of the raw disk '%s': %Rrc\n", rawdisk.c_str(), vrc); 1039 1039 goto out; 1040 1040 } … … 1087 1087 else 1088 1088 { 1089 RTPrintf("Cannot get the block size for file '%s': %Rrc", rawdisk. raw(), vrc);1089 RTPrintf("Cannot get the block size for file '%s': %Rrc", rawdisk.c_str(), vrc); 1090 1090 vrc = RTErrConvertFromErrno(errno); 1091 1091 goto out; … … 1095 1095 { 1096 1096 vrc = RTErrConvertFromErrno(errno); 1097 RTPrintf("Cannot get the block count for file '%s': %Rrc", rawdisk. raw(), vrc);1097 RTPrintf("Cannot get the block count for file '%s': %Rrc", rawdisk.c_str(), vrc); 1098 1098 goto out; 1099 1099 } … … 1101 1101 else 1102 1102 { 1103 RTPrintf("File '%s' is no block device\n", rawdisk. raw());1103 RTPrintf("File '%s' is no block device\n", rawdisk.c_str()); 1104 1104 vrc = VERR_INVALID_PARAMETER; 1105 1105 goto out; … … 1116 1116 { 1117 1117 vrc = RTErrConvertFromErrno(errno); 1118 RTPrintf("Error getting the size of the raw disk '%s': %Rrc\n", rawdisk. raw(), vrc);1118 RTPrintf("Error getting the size of the raw disk '%s': %Rrc\n", rawdisk.c_str(), vrc); 1119 1119 goto out; 1120 1120 } … … 1122 1122 else 1123 1123 { 1124 RTPrintf("File '%s' is no block or char device\n", rawdisk. raw());1124 RTPrintf("File '%s' is no block or char device\n", rawdisk.c_str()); 1125 1125 vrc = VERR_INVALID_PARAMETER; 1126 1126 goto out; … … 1138 1138 { 1139 1139 vrc = RTErrConvertFromErrno(errno); 1140 RTPrintf("Cannot get the block count for file '%s': %Rrc", rawdisk. raw(), vrc);1140 RTPrintf("Cannot get the block count for file '%s': %Rrc", rawdisk.c_str(), vrc); 1141 1141 goto out; 1142 1142 } … … 1144 1144 else 1145 1145 { 1146 RTPrintf("File '%s' is no character device\n", rawdisk. raw());1146 RTPrintf("File '%s' is no character device\n", rawdisk.c_str()); 1147 1147 vrc = VERR_INVALID_PARAMETER; 1148 1148 goto out; … … 1154 1154 if (RT_FAILURE(vrc)) 1155 1155 { 1156 RTPrintf("Error getting the size of the raw disk '%s': %Rrc\n", rawdisk. raw(), vrc);1156 RTPrintf("Error getting the size of the raw disk '%s': %Rrc\n", rawdisk.c_str(), vrc); 1157 1157 goto out; 1158 1158 } … … 1333 1333 /* Refer to the correct partition and use offset 0. */ 1334 1334 char *psz; 1335 vrc = RTStrAPrintf(&psz, "%ss%u", rawdisk. raw(),1335 vrc = RTStrAPrintf(&psz, "%ss%u", rawdisk.c_str(), 1336 1336 partitions.aPartitions[i].uIndex); 1337 1337 if (RT_FAILURE(vrc))
Note:
See TracChangeset
for help on using the changeset viewer.