VirtualBox

Ignore:
Timestamp:
Nov 16, 2015 2:42:34 PM (9 years ago)
Author:
vboxsync
Message:

Solaris/r0drv,SUPDrv: Don't drop log messages on bad-preemption context as we miss errors.
Added a warning instead and during normal VBox operation we should eliminate messages with the warning prefix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/solaris/SUPDrv-solaris.c

    r58340 r58697  
    12731273    char        szMsg[512];
    12741274
    1275     /* cmn_err() acquires adaptive mutexes. Not preemption safe, see @bugref{6657}. */
    1276     if (!RTThreadPreemptIsEnabled(NIL_RTTHREAD))
    1277         return 0;
    1278 
    12791275    va_start(args, pszFormat);
    12801276    RTStrPrintfV(szMsg, sizeof(szMsg) - 1, pszFormat, args);
     
    12821278
    12831279    szMsg[sizeof(szMsg) - 1] = '\0';
    1284     cmn_err(CE_CONT, "%s", szMsg);
     1280    /* cmn_err() acquires adaptive mutexes. Not preemption safe, see @bugref{6657}. */
     1281    if (RTThreadPreemptIsEnabled(NIL_RTTHREAD))
     1282        cmn_err(CE_CONT, "%s", szMsg);
     1283    else
     1284        cmn_err(CE_CONT, "[!BadPreemptCtx!] %s", szMsg);
    12851285    return 0;
    12861286}
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