VirtualBox

Changeset 37843 in vbox for trunk/src/VBox/Main/src-all


Ignore:
Timestamp:
Jul 8, 2011 12:34:18 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72735
Message:

Moved the extension pack release logging from ConsoleImpl.cpp to ExtPackManagerImpl.cpp.

File:
1 edited

Legend:

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

    r37767 r37843  
    30323032}
    30333033
     3034/**
     3035 * Dumps all extension packs to the release log.
     3036 */
     3037void ExtPackManager::dumpAllToReleaseLog(void)
     3038{
     3039    AutoCaller autoCaller(this);
     3040    HRESULT hrc = autoCaller.rc();
     3041    if (FAILED(hrc))
     3042        return;
     3043    AutoReadLock autoLock(this COMMA_LOCKVAL_SRC_POS);
     3044
     3045    LogRel(("Installed Extension Packs:\n"));
     3046    for (ExtPackList::iterator it = m->llInstalledExtPacks.begin();
     3047         it != m->llInstalledExtPacks.end();
     3048         it++)
     3049    {
     3050        ExtPack::Data *pExtPackData = (*it)->m;
     3051        if (pExtPackData)
     3052        {
     3053            if (pExtPackData->fUsable)
     3054                LogRel(("  %s (Version: %s r%u; VRDE Module: %s)\n",
     3055                        pExtPackData->Desc.strName.c_str(),
     3056                        pExtPackData->Desc.strVersion.c_str(),
     3057                        pExtPackData->Desc.uRevision,
     3058                        pExtPackData->Desc.strVrdeModule.c_str() ));
     3059            else
     3060                LogRel(("  %s (Version: %s r%u; VRDE Module: %s unusable because of '%s')\n",
     3061                        pExtPackData->Desc.strName.c_str(),
     3062                        pExtPackData->Desc.strVersion.c_str(),
     3063                        pExtPackData->Desc.uRevision,
     3064                        pExtPackData->Desc.strVrdeModule.c_str(),
     3065                        pExtPackData->strWhyUnusable.c_str() ));
     3066        }
     3067        else
     3068            LogRel(("  pExtPackData is NULL\n"));
     3069    }
     3070
     3071    if (!m->llInstalledExtPacks.size())
     3072        LogRel(("  None installed!\n"));
     3073}
     3074
    30343075/* vi: set tabstop=4 shiftwidth=4 expandtab: */
Note: See TracChangeset for help on using the changeset viewer.

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