VirtualBox

Changeset 50899 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 26, 2014 6:08:27 PM (11 years ago)
Author:
vboxsync
Message:

remove changes that break up log and error strings, introduced in 92972

Location:
trunk/src/VBox/Main
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/ExtPackManagerImpl.cpp

    r50874 r50899  
    314314     *        dropped. */
    315315    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
    322319
    323320    m->fUsable = true;
  • trunk/src/VBox/Main/src-all/ProgressImpl.cpp

    r50874 r50899  
    159159            uint64_t ullTimeRemaining = ullTimeTotal - ullTimeElapsed;
    160160
    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",
    163162//          (uint32_t)dPercentDone, ullTimeNow, ullTimeElapsed, ullTimeTotal, ullTimeRemaining));
    164163
     
    444443                       OUT_GUID aId /* = NULL */)
    445444{
    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",
    448446                     aDescription.c_str(),
    449447                     cOperations,
     
    908906    m_ulOperationPercent = 0;
    909907
    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));
    915910
    916911    /* wake up all waiting threads */
  • trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp

    r50874 r50899  
    487487        if (RT_UNLIKELY(mData.mPID != uPID))
    488488        {
    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));
    493491            rc = VERR_NOT_FOUND;
    494492        }
     
    13801378    {
    13811379        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));
    13851382        if (pGuestRc)
    13861383            *pGuestRc = mData.mLastError; /* Return last set error. */
     
    16661663                              void *pvData, size_t cbData, uint32_t uTimeoutMS, uint32_t *puWritten, int *pGuestRc)
    16671664{
    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));
    16711667    /* All is optional. There can be 0 byte writes. */
    1672 
    16731668    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    16741669
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r50874 r50899  
    21562156    if (   mData.mProtocolVersion < 2
    21572157        && 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
    21642161    return VINF_SUCCESS;
    21652162}
  • trunk/src/VBox/Main/src-server/ApplianceImpl.cpp

    r50874 r50899  
    937937        }
    938938    }
    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));
    944941
    945942    rc = pProgress->init(mVirtualBox, static_cast<IAppliance*>(this),
  • trunk/src/VBox/Main/src-server/MachineImplCloneVM.cpp

    r50875 r50899  
    677677                        pParent->i_getPreferredDiffFormat(),
    678678                        Utf8StrFmt("%s%c", strSnapshotFolder.c_str(), RTPATH_DELIMITER),
    679                         Guid::Empty /* empty media registry */);
     679                                   Guid::Empty /* empty media registry */);
    680680        if (FAILED(rc)) throw rc;
    681681
     
    10371037        /* The absolute name of the snapshot folder. */
    10381038        strTrgSnapshotFolder = Utf8StrFmt("%s%c%s", strTrgMachineFolder.c_str(), RTPATH_DELIMITER,
    1039                                                     trgMCF.machineUserData.strSnapshotFolder.c_str());
     1039                                          trgMCF.machineUserData.strSnapshotFolder.c_str());
    10401040
    10411041        /* Should we rename the disk names. */
     
    11681168                            if (strSrcTest == strOldVMName)
    11691169                                strNewName = Utf8StrFmt("%s%s", trgMCF.machineUserData.strName.c_str(),
    1170                                                                 RTPathSuffix(Utf8Str(bstrSrcName).c_str()));
     1170                                                        RTPathSuffix(Utf8Str(bstrSrcName).c_str()));
    11711171                            else if (   strSrcTest.startsWith("{")
    11721172                                     && strSrcTest.endsWith("}"))
     
    11771177                                if (temp_guid.isValid() && !temp_guid.isZero())
    11781178                                    strNewName = Utf8StrFmt("%s%s", newId.toStringCurly().c_str(),
    1179                                                                     RTPathSuffix(strNewName.c_str()));
     1179                                                            RTPathSuffix(strNewName.c_str()));
    11801180                            }
    11811181                            else
     
    13501350                throw p->setError(VBOX_E_IPRT_ERROR,
    13511351                                  p->tr("Could not create snapshots folder '%s' (%Rrc)"),
    1352                                   strTrgSnapshotFolder.c_str(), vrc);
     1352                                        strTrgSnapshotFolder.c_str(), vrc);
    13531353        }
    13541354        /* Clone all save state files. */
     
    13611361            /* Move to next sub-operation. */
    13621362            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);
    13641364            if (FAILED(rc)) throw rc;
    13651365            /* Copy the file only if it was not copied already. */
  • trunk/src/VBox/Main/src-server/SnapshotImpl.cpp

    r50874 r50899  
    14221422        && mData->mCurrentSnapshot->i_getDepth() >= SETTINGS_SNAPSHOT_DEPTH_MAX)
    14231423    {
    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
    14271425        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"),
    14291427                        mUserData->s.strName.c_str());
    14301428    }
     
    21182116    size_t childrenCount = pSnapshot->i_getChildrenCount();
    21192117    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";
    21232118        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"),
    21252120                        pSnapshot->i_getName().c_str(),
    21262121                        mUserData->s.strName.c_str(),
    21272122                        childrenCount);
    2128     }
    21292123
    21302124    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";
    21342125        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"),
    21362127                        pSnapshot->i_getName().c_str(),
    21372128                        mUserData->s.strName.c_str());
    2138     }
    21392129
    21402130    /* If the snapshot being deleted is the current one, ensure current
  • trunk/src/VBox/Main/src-server/generic/NetIf-generic.cpp

    r50874 r50899  
    258258                                                       COM_IIDOF(IHostNetworkInterface),
    259259                                                       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);
    262261                        }
    263262                        else
     
    289288                                               COM_IIDOF(IHostNetworkInterface),
    290289                                               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);
    293291                    pclose(fp);
    294292                }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette