VirtualBox

Changeset 30794 in vbox


Ignore:
Timestamp:
Jul 12, 2010 12:55:41 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63600
Message:

Guest eGuest Control/Main: Added release logging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/GuestImpl.cpp

    r30778 r30794  
    576576            {
    577577                case PROC_STS_STARTED:
     578                    LogRel(("Guest process (PID %u) started\n", pCBData->u32PID)); /** @todo Add process name */
    578579                    hr = it->second.pProgress->SetNextOperation(BstrFmt(tr("Waiting for process to exit ...")), 1 /* Weight */);
    579580                    AssertComRC(hr);
     
    581582
    582583                case PROC_STS_TEN: /* Terminated normally. */
     584                    LogRel(("Guest process (PID %u) exited normally\n", pCBData->u32PID)); /** @todo Add process name */
    583585                    hr = it->second.pProgress->notifyComplete(S_OK);
    584586                    AssertComRC(hr);
     
    588590
    589591                case PROC_STS_TEA: /* Terminated abnormally. */
     592                    LogRel(("Guest process (PID %u) terminated abnormally with exit code = %u\n",
     593                            pCBData->u32PID, pCBData->u32Flags)); /** @todo Add process name */
    590594                    errMsg = Utf8StrFmt(Guest::tr("Process terminated abnormally with status '%u'"),
    591595                                        pCBData->u32Flags);
     
    593597
    594598                case PROC_STS_TES: /* Terminated through signal. */
     599                    LogRel(("Guest process (PID %u) terminated through signal with exit code = %u\n",
     600                            pCBData->u32PID, pCBData->u32Flags)); /** @todo Add process name */
    595601                    errMsg = Utf8StrFmt(Guest::tr("Process terminated via signal with status '%u'"),
    596602                                        pCBData->u32Flags);
     
    598604
    599605                case PROC_STS_TOK:
     606                    LogRel(("Guest process (PID %u) timed out and was killed\n", pCBData->u32PID)); /** @todo Add process name */
    600607                    errMsg = Utf8StrFmt(Guest::tr("Process timed out and was killed"));
    601608                    break;
    602609
    603610                case PROC_STS_TOA:
     611                    LogRel(("Guest process (PID %u) timed out and could not be killed\n", pCBData->u32PID)); /** @todo Add process name */
    604612                    errMsg = Utf8StrFmt(Guest::tr("Process timed out and could not be killed"));
    605613                    break;
    606614
    607615                case PROC_STS_DWN:
     616                    LogRel(("Guest process (PID %u) exited because system is shutting down\n", pCBData->u32PID)); /** @todo Add process name */
    608617                    errMsg = Utf8StrFmt(Guest::tr("Process exited because system is shutting down"));
    609618                    break;
    610619
    611620                case PROC_STS_ERROR:
     621                    LogRel(("Guest process (PID %u) could not be started because of rc=%Rrc\n",
     622                            pCBData->u32PID, pCBData->u32Flags)); /** @todo Add process name */
    612623                    errMsg = Utf8StrFmt(Guest::tr("Process execution failed with rc=%Rrc"), pCBData->u32Flags);
    613624                    break;
     
    963974                    }
    964975                }
     976
     977                LogRel(("Executing guest process \"%s\" as user \"%s\" ...\n",
     978                        Utf8Command.raw(), Utf8UserName.raw()));
    965979
    966980                if (RT_SUCCESS(vrc))
     
    11701184            RTMemFree(papszArgv);
    11711185        }
     1186
     1187        if (RT_FAILURE(rc))
     1188            LogRel(("Executing guest process \"%s\" as user \"%s\" failed with %Rrc\n",
     1189                    Utf8Command.raw(), Utf8UserName.raw(), vrc));
    11721190    }
    11731191    catch (std::bad_alloc &)
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