VirtualBox

Changeset 90160 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Jul 12, 2021 10:32:26 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145663
Message:

VMM/Guru: Print the assertion message strings if they aren't empty. bugref:10064 ticketref:20090

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/VMMGuruMeditation.cpp

    r82968 r90160  
    607607        }
    608608
     609        /*
     610         * For some problems (e.g. VERR_INVALID_STATE in VMMR0.cpp), there could be
     611         * additional details in the assertion messages.
     612         */
    609613        default:
    610614        {
     615            const char *pszMsg1 = VMMR3GetRZAssertMsg1(pVM);
     616            while (pszMsg1 && *pszMsg1 == '\n')
     617                pszMsg1++;
     618            if (pszMsg1 && *pszMsg1 != '\0')
     619                pHlp->pfnPrintf(pHlp, "AssertMsg1: %s\n", pszMsg1);
     620
     621            const char *pszMsg2 = VMMR3GetRZAssertMsg2(pVM);
     622            while (pszMsg2 && *pszMsg2 == '\n')
     623                pszMsg2++;
     624            if (pszMsg2 && *pszMsg2 != '\0')
     625                pHlp->pfnPrintf(pHlp, "AssertMsg2: %s\n", pszMsg2);
    611626            break;
    612627        }
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