VirtualBox

Changeset 50899 in vbox for trunk/src/VBox/Main/src-server


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/src-server
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • 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