Changeset 47538 in vbox for trunk/src/VBox
- Timestamp:
- Aug 5, 2013 10:18:26 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r47502 r47538 403 403 } 404 404 405 /** 406 * Translates a guest session status to a human readable 407 * string. 408 */ 409 static const char *ctrlSessionStatusToText(GuestSessionStatus_T enmStatus) 410 { 411 switch (enmStatus) 412 { 413 case GuestSessionStatus_Starting: 414 return "starting"; 415 case GuestSessionStatus_Started: 416 return "started"; 417 case GuestSessionStatus_Terminating: 418 return "terminating"; 419 case GuestSessionStatus_Terminated: 420 return "terminated"; 421 case GuestSessionStatus_TimedOutKilled: 422 return "timed out"; 423 case GuestSessionStatus_TimedOutAbnormally: 424 return "timed out, hanging"; 425 case GuestSessionStatus_Down: 426 return "killed"; 427 case GuestSessionStatus_Error: 428 return "error"; 429 default: 430 break; 431 } 432 return "unknown"; 433 } 434 405 435 static int ctrlPrintError(com::ErrorInfo &errorInfo) 406 436 { … … 2856 2886 if (!pCurSession.isNull()) 2857 2887 { 2888 ULONG uID; 2889 CHECK_ERROR_BREAK(pCurSession, COMGETTER(Id)(&uID)); 2858 2890 Bstr strName; 2859 2891 CHECK_ERROR_BREAK(pCurSession, COMGETTER(Name)(strName.asOutParam())); 2860 2892 Bstr strUser; 2861 2893 CHECK_ERROR_BREAK(pCurSession, COMGETTER(User)(strUser.asOutParam())); 2862 ULONG uID; 2863 CHECK_ERROR_BREAK(pCurSession, COMGETTER(Id)(&uID)); 2864 2865 RTPrintf("\n\tSession #%-3zu ID=%-3RU32 User=%-16ls Name=%ls", 2866 i, uID, strUser.raw(), strName.raw()); 2894 GuestSessionStatus_T sessionStatus; 2895 CHECK_ERROR_BREAK(pCurSession, COMGETTER(Status)(&sessionStatus)); 2896 RTPrintf("\n\tSession #%-3zu ID=%-3RU32 User=%-16ls Status=[%s] Name=%ls", 2897 i, uID, strUser.raw(), ctrlSessionStatusToText(sessionStatus), strName.raw()); 2867 2898 2868 2899 if ( fListAll … … 2880 2911 Bstr strExecPath; 2881 2912 CHECK_ERROR_BREAK(pCurProcess, COMGETTER(ExecutablePath)(strExecPath.asOutParam())); 2882 ProcessStatus_T status;2883 CHECK_ERROR_BREAK(pCurProcess, COMGETTER(Status)(& status));2913 ProcessStatus_T procStatus; 2914 CHECK_ERROR_BREAK(pCurProcess, COMGETTER(Status)(&procStatus)); 2884 2915 2885 2916 RTPrintf("\n\t\tProcess #%-03zu PID=%-6RU32 Status=[%s] Command=%ls", 2886 a, uPID, ctrlExecProcessStatusToText( status), strExecPath.raw());2917 a, uPID, ctrlExecProcessStatusToText(procStatus), strExecPath.raw()); 2887 2918 } 2888 2919 }
Note:
See TracChangeset
for help on using the changeset viewer.