VirtualBox

Changeset 27158 in vbox for trunk


Ignore:
Timestamp:
Mar 8, 2010 11:53:04 AM (15 years ago)
Author:
vboxsync
Message:

Additions/VBoxGuest-solaris: logging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.c

    r27156 r27158  
    185185    LogFlow((DEVICE_NAME ":_init\n"));
    186186
     187    PRTLOGGER pRelLogger;
     188    static const char * const s_apszGroups[] = VBOX_LOGGROUP_NAMES;
     189    int rc = RTLogCreate(&pRelLogger, 0 /* fFlags */, "all",
     190                     "VBOX_RELEASE_LOG", RT_ELEMENTS(s_apszGroups), s_apszGroups,
     191                     RTLOGDEST_STDOUT | RTLOGDEST_DEBUGGER, NULL);
     192    if (RT_SUCCESS(rc))
     193        RTLogRelSetDefaultInstance(pRelLogger);
     194    else
     195        cmn_err(CE_NOTE, "failed to initialize driver logging rc=%d!\n", rc);
     196
    187197    /*
    188198     * Prevent module autounloading.
     
    194204        LogRel((DEVICE_NAME ":failed to disable autounloading!\n"));
    195205
    196     PRTLOGGER pRelLogger;
    197     static const char * const s_apszGroups[] = VBOX_LOGGROUP_NAMES;
    198     int rc = RTLogCreate(&pRelLogger, 0 /* fFlags */, "all",
    199                      "VBOX_RELEASE_LOG", RT_ELEMENTS(s_apszGroups), s_apszGroups,
    200                      RTLOGDEST_STDOUT | RTLOGDEST_DEBUGGER, NULL);
    201     if (RT_SUCCESS(rc))
    202         RTLogRelSetDefaultInstance(pRelLogger);
    203206
    204207    rc = ddi_soft_state_init(&g_pVBoxGuestSolarisState, sizeof(vboxguest_state_t), 1);
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