VirtualBox

Changeset 93047 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Dec 21, 2021 1:47:04 PM (3 years ago)
Author:
vboxsync
Message:

Main/Guest Control: (Release) log the guest session (friendly) name instead of the ID; is more meaningful for users.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r93035 r93047  
    20212021        case GUEST_SESSION_NOTIFYTYPE_ERROR:
    20222022            sessionStatus = GuestSessionStatus_Error;
    2023             LogRel(("Guest Control: Error starting session #%RU32 (%Rrc) \n", mData.mSession.mID, rcGuest));
     2023            LogRel(("Guest Control: Error starting Session '%s' (%Rrc) \n", mData.mSession.mName.c_str(), rcGuest));
    20242024            break;
    20252025
     
    20452045            }
    20462046#endif
    2047             LogRel(("Guest Control: Session #%RU32 was successfully started\n", mData.mSession.mID));
     2047            LogRel(("Guest Control: Session '%s' was successfully started\n", mData.mSession.mName.c_str()));
    20482048            break;
    20492049
    20502050        case GUEST_SESSION_NOTIFYTYPE_TEN:
    2051             LogRel(("Guest Control: Session #%RU32 was terminated normally with exit code %#x\n",
    2052                     mData.mSession.mID, dataCb.uResult));
     2051            LogRel(("Guest Control: Session '%s' was terminated normally with exit code %#x\n",
     2052                    mData.mSession.mName.c_str(), dataCb.uResult));
    20532053            sessionStatus = GuestSessionStatus_Terminated;
    20542054            break;
    20552055
    20562056        case GUEST_SESSION_NOTIFYTYPE_TEA:
    2057             LogRel(("Guest Control: Session #%RU32 was terminated abnormally\n", mData.mSession.mID));
     2057            LogRel(("Guest Control: Session '%s' was terminated abnormally\n", mData.mSession.mName.c_str()));
    20582058            sessionStatus = GuestSessionStatus_Terminated;
    20592059            /* dataCb.uResult is undefined. */
     
    20612061
    20622062        case GUEST_SESSION_NOTIFYTYPE_TES:
    2063             LogRel(("Guest Control: Session #%RU32 was terminated via signal %#x\n", mData.mSession.mID, dataCb.uResult));
     2063            LogRel(("Guest Control: Session '%s' was terminated via signal %#x\n", mData.mSession.mName.c_str(), dataCb.uResult));
    20642064            sessionStatus = GuestSessionStatus_Terminated;
    20652065            break;
     
    20672067        case GUEST_SESSION_NOTIFYTYPE_TOK:
    20682068            sessionStatus = GuestSessionStatus_TimedOutKilled;
    2069             LogRel(("Guest Control: Session #%RU32 timed out and was killed\n", mData.mSession.mID));
     2069            LogRel(("Guest Control: Session '%s' timed out and was killed\n", mData.mSession.mName.c_str()));
    20702070            break;
    20712071
    20722072        case GUEST_SESSION_NOTIFYTYPE_TOA:
    20732073            sessionStatus = GuestSessionStatus_TimedOutAbnormally;
    2074             LogRel(("Guest Control: Session #%RU32 timed out and was not killed successfully\n", mData.mSession.mID));
     2074            LogRel(("Guest Control: Session '%s' timed out and was not killed successfully\n", mData.mSession.mName.c_str()));
    20752075            break;
    20762076
    20772077        case GUEST_SESSION_NOTIFYTYPE_DWN:
    20782078            sessionStatus = GuestSessionStatus_Down;
    2079             LogRel(("Guest Control: Session #%RU32 got killed as guest service/OS is down\n", mData.mSession.mID));
     2079            LogRel(("Guest Control: Session '%s' got killed as guest service/OS is down\n", mData.mSession.mName.c_str()));
    20802080            break;
    20812081
     
    33093309        if (i)
    33103310        {
    3311             LogRel(("Guest Control: Closing session #%RU32 timed out (%RU32s timeout, attempt %d/10), retrying ...\n",
    3312                     mData.mSession.mID, msTimeout / RT_MS_1SEC, i + 1));
     3311            LogRel(("Guest Control: Closing session '%s' timed out (%RU32s timeout, attempt %d/10), retrying ...\n",
     3312                    mData.mSession.mName.c_str(), msTimeout / RT_MS_1SEC, i + 1));
    33133313            msTimeout += RT_MS_10SEC; /* Slightly increase the timeout. */
    33143314        }
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