Changeset 50899 in vbox for trunk/src/VBox
- Timestamp:
- Mar 26, 2014 6:08:27 PM (11 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/ExtPackManagerImpl.cpp
r50874 r50899 314 314 * dropped. */ 315 315 if (!strSavedName.equalsIgnoreCase(m->Desc.strName)) 316 { 317 Utf8Str str; 318 str = "Extension pack name mismatch between the downloaded file"; 319 str += "and the XML inside it (xml='%s' file='%s')"; 320 return initFailed(tr(str.c_str()), m->Desc.strName.c_str(), strSavedName.c_str()); 321 } 316 return initFailed(tr("Extension pack name mismatch between the downloaded file and the XML inside it (xml='%s' file='%s')"), 317 m->Desc.strName.c_str(), strSavedName.c_str()); 318 322 319 323 320 m->fUsable = true; -
trunk/src/VBox/Main/src-all/ProgressImpl.cpp
r50874 r50899 159 159 uint64_t ullTimeRemaining = ullTimeTotal - ullTimeElapsed; 160 160 161 // Log(("Progress::GetTimeRemaining: dPercentDone %RI32, ullTimeNow = 162 // %RI64, ullTimeElapsed = %RI64, ullTimeTotal = %RI64, ullTimeRemaining = %RI64\n", 161 // Log(("Progress::GetTimeRemaining: dPercentDone %RI32, ullTimeNow = %RI64, ullTimeElapsed = %RI64, ullTimeTotal = %RI64, ullTimeRemaining = %RI64\n", 163 162 // (uint32_t)dPercentDone, ullTimeNow, ullTimeElapsed, ullTimeTotal, ullTimeRemaining)); 164 163 … … 444 443 OUT_GUID aId /* = NULL */) 445 444 { 446 Utf8Str str = "aDescription=\"%s\", cOperations=%d, ulTotalOperationsWeight=%d, "; 447 LogFlowThisFunc((str.c_str(), 445 LogFlowThisFunc(("aDescription=\"%ls\", cOperations=%d, ulTotalOperationsWeight=%d, bstrFirstOperationDescription=\"%ls\", ulFirstOperationWeight=%d\n", 448 446 aDescription.c_str(), 449 447 cOperations, … … 908 906 m_ulOperationPercent = 0; 909 907 910 Utf8Str str; 911 str = "Progress::setNextOperation(%s): ulNextOperationsWeight = %d; m_ulCurrentOperation is now %d,"; 912 str += "m_ulOperationsCompletedWeight is now %d\n"; 913 Log((str.c_str(), m_operationDescription.c_str(), aNextOperationsWeight, m_ulCurrentOperation, 914 m_ulOperationsCompletedWeight)); 908 Log(("Progress::setNextOperation(%s): aNextOperationsWeight = %d; m_ulCurrentOperation is now %d, m_ulOperationsCompletedWeight is now %d\n", 909 m_operationDescription.c_str(), aNextOperationsWeight, m_ulCurrentOperation, m_ulOperationsCompletedWeight)); 915 910 916 911 /* wake up all waiting threads */ -
trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp
r50874 r50899 487 487 if (RT_UNLIKELY(mData.mPID != uPID)) 488 488 { 489 Utf8Str str; 490 str = "Stale guest process (PID=%RU32) sent data to newly started"; 491 str += " process (pProcesS=%p, PID=%RU32, status=%RU32)\n"; 492 LogFlowFunc((str.c_str(), uPID, this, mData.mPID, mData.mStatus)); 489 LogFlowFunc(("Stale guest process (PID=%RU32) sent data to a newly started process (pProcesS=%p, PID=%RU32, status=%RU32)\n", 490 uPID, this, mData.mPID, mData.mStatus)); 493 491 rc = VERR_NOT_FOUND; 494 492 } … … 1380 1378 { 1381 1379 waitResult = ProcessWaitResult_Error; 1382 Utf8Str str; 1383 str = "No error rc (%Rrc) set when guest process indicated an error\n"; 1384 AssertMsg(RT_FAILURE(mData.mLastError), (str.c_str(), mData.mLastError)); 1380 AssertMsg(RT_FAILURE(mData.mLastError), 1381 ("No error rc (%Rrc) set when guest process indicated an error\n", mData.mLastError)); 1385 1382 if (pGuestRc) 1386 1383 *pGuestRc = mData.mLastError; /* Return last set error. */ … … 1666 1663 void *pvData, size_t cbData, uint32_t uTimeoutMS, uint32_t *puWritten, int *pGuestRc) 1667 1664 { 1668 Utf8Str str; 1669 str = "uPID=%RU32, uHandle=%RU32, uFlags=%RU32, pvData=%p, cbData=%RU32, uTimeoutMS=%RU32, puWritten=%p, pGuestRc=%p\n"; 1670 LogFlowThisFunc((str.c_str(), mData.mPID, uHandle, uFlags, pvData, cbData, uTimeoutMS, puWritten, pGuestRc)); 1665 LogFlowThisFunc(("uPID=%RU32, uHandle=%RU32, uFlags=%RU32, pvData=%p, cbData=%RU32, uTimeoutMS=%RU32, puWritten=%p, pGuestRc=%p\n", 1666 mData.mPID, uHandle, uFlags, pvData, cbData, uTimeoutMS, puWritten, pGuestRc)); 1671 1667 /* All is optional. There can be 0 byte writes. */ 1672 1673 1668 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 1674 1669 -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r50874 r50899 2156 2156 if ( mData.mProtocolVersion < 2 2157 2157 && s_gctrlLegacyWarning++ < 3) /** @todo Find a bit nicer text. */ 2158 { 2159 Utf8Str str; 2160 str = "Warning: Guest Additions are older (%ld.%ld) than host"; 2161 str += " capabilities for guest control, please upgrade them. Using protocol version %ld now\n"; 2162 LogRel((tr(str.c_str()), uVBoxMajor, uVBoxMinor, mData.mProtocolVersion)); 2163 } 2158 LogRel((tr("Warning: Guest Additions are older (%ld.%ld) than host capabilities for guest control, please upgrade them. Using protocol version %ld now\n"), 2159 uVBoxMajor, uVBoxMinor, mData.mProtocolVersion)); 2160 2164 2161 return VINF_SUCCESS; 2165 2162 } -
trunk/src/VBox/Main/src-server/ApplianceImpl.cpp
r50874 r50899 937 937 } 938 938 } 939 940 Utf8Str str; 941 str = "Setting up progress object: ulTotalMB = %d, cDisks = %d, => cOperations = %d,"; 942 str += "ulTotalOperationsWeight = %d, m->ulWeightForXmlOperation = %d\n"; 943 Log((str.c_str(), m->ulTotalDisksMB, m->cDisks, cOperations, ulTotalOperationsWeight, m->ulWeightForXmlOperation)); 939 Log(("Setting up progress object: ulTotalMB = %d, cDisks = %d, => cOperations = %d, ulTotalOperationsWeight = %d, m->ulWeightForXmlOperation = %d\n", 940 m->ulTotalDisksMB, m->cDisks, cOperations, ulTotalOperationsWeight, m->ulWeightForXmlOperation)); 944 941 945 942 rc = pProgress->init(mVirtualBox, static_cast<IAppliance*>(this), -
trunk/src/VBox/Main/src-server/MachineImplCloneVM.cpp
r50875 r50899 677 677 pParent->i_getPreferredDiffFormat(), 678 678 Utf8StrFmt("%s%c", strSnapshotFolder.c_str(), RTPATH_DELIMITER), 679 Guid::Empty /* empty media registry */);679 Guid::Empty /* empty media registry */); 680 680 if (FAILED(rc)) throw rc; 681 681 … … 1037 1037 /* The absolute name of the snapshot folder. */ 1038 1038 strTrgSnapshotFolder = Utf8StrFmt("%s%c%s", strTrgMachineFolder.c_str(), RTPATH_DELIMITER, 1039 1039 trgMCF.machineUserData.strSnapshotFolder.c_str()); 1040 1040 1041 1041 /* Should we rename the disk names. */ … … 1168 1168 if (strSrcTest == strOldVMName) 1169 1169 strNewName = Utf8StrFmt("%s%s", trgMCF.machineUserData.strName.c_str(), 1170 1170 RTPathSuffix(Utf8Str(bstrSrcName).c_str())); 1171 1171 else if ( strSrcTest.startsWith("{") 1172 1172 && strSrcTest.endsWith("}")) … … 1177 1177 if (temp_guid.isValid() && !temp_guid.isZero()) 1178 1178 strNewName = Utf8StrFmt("%s%s", newId.toStringCurly().c_str(), 1179 1179 RTPathSuffix(strNewName.c_str())); 1180 1180 } 1181 1181 else … … 1350 1350 throw p->setError(VBOX_E_IPRT_ERROR, 1351 1351 p->tr("Could not create snapshots folder '%s' (%Rrc)"), 1352 strTrgSnapshotFolder.c_str(), vrc);1352 strTrgSnapshotFolder.c_str(), vrc); 1353 1353 } 1354 1354 /* Clone all save state files. */ … … 1361 1361 /* Move to next sub-operation. */ 1362 1362 rc = d->pProgress->SetNextOperation(BstrFmt(p->tr("Copy save state file '%s' ..."), 1363 RTPathFilename(sst.strSaveStateFile.c_str())).raw(), sst.uWeight);1363 RTPathFilename(sst.strSaveStateFile.c_str())).raw(), sst.uWeight); 1364 1364 if (FAILED(rc)) throw rc; 1365 1365 /* Copy the file only if it was not copied already. */ -
trunk/src/VBox/Main/src-server/SnapshotImpl.cpp
r50874 r50899 1422 1422 && mData->mCurrentSnapshot->i_getDepth() >= SETTINGS_SNAPSHOT_DEPTH_MAX) 1423 1423 { 1424 Utf8Str str; 1425 str = "Cannot take another snapshot for machine '%s', because it exceeds the maximum"; 1426 str += "snapshot depth limit. Please delete some earlier snapshot which you no longer need"; 1424 1427 1425 return setError(VBOX_E_INVALID_OBJECT_STATE, 1428 tr( str.c_str()),1426 tr("Cannot take another snapshot for machine '%s', because it exceeds the maximum snapshot depth limit. Please delete some earlier snapshot which you no longer need"), 1429 1427 mUserData->s.strName.c_str()); 1430 1428 } … … 2118 2116 size_t childrenCount = pSnapshot->i_getChildrenCount(); 2119 2117 if (childrenCount > 1) 2120 {2121 str = "Snapshot '%s' of the machine '%s' cannot be deleted, because it has %d child snapshots,";2122 str += "which is more than the one snapshot allowed for deletion";2123 2118 return setError(VBOX_E_INVALID_OBJECT_STATE, 2124 tr( str.c_str()),2119 tr("Snapshot '%s' of the machine '%s' cannot be deleted, because it has %d child snapshots, which is more than the one snapshot allowed for deletion"), 2125 2120 pSnapshot->i_getName().c_str(), 2126 2121 mUserData->s.strName.c_str(), 2127 2122 childrenCount); 2128 }2129 2123 2130 2124 if (pSnapshot == mData->mCurrentSnapshot && childrenCount >= 1) 2131 {2132 str = "Snapshot '%s' of the machine '%s' cannot be deleted, because it is the current";2133 str += "snapshot and has one child snapshot";2134 2125 return setError(VBOX_E_INVALID_OBJECT_STATE, 2135 tr( str.c_str()),2126 tr("Snapshot '%s' of the machine '%s' cannot be deleted, because it is the current snapshot and has one child snapshot"), 2136 2127 pSnapshot->i_getName().c_str(), 2137 2128 mUserData->s.strName.c_str()); 2138 }2139 2129 2140 2130 /* If the snapshot being deleted is the current one, ensure current -
trunk/src/VBox/Main/src-server/generic/NetIf-generic.cpp
r50874 r50899 258 258 COM_IIDOF(IHostNetworkInterface), 259 259 HostNetworkInterface::getStaticComponentName(), 260 "Failed to get config info for %s (as reported by '" 261 VBOXNETADPCTL_NAME " add')\n", szBuf); 260 "Failed to get config info for %s (as reported by '" VBOXNETADPCTL_NAME " add')\n", szBuf); 262 261 } 263 262 else … … 289 288 COM_IIDOF(IHostNetworkInterface), 290 289 HostNetworkInterface::getStaticComponentName(), 291 "Failed to execute '" VBOXNETADPCTL_NAME 292 " add' (exit status: %d). Check permissions!", rc); 290 "Failed to execute '" VBOXNETADPCTL_NAME " add' (exit status: %d). Check permissions!", rc); 293 291 pclose(fp); 294 292 }
Note:
See TracChangeset
for help on using the changeset viewer.