- Timestamp:
- Mar 8, 2010 11:53:04 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.c
r27156 r27158 185 185 LogFlow((DEVICE_NAME ":_init\n")); 186 186 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 187 197 /* 188 198 * Prevent module autounloading. … … 194 204 LogRel((DEVICE_NAME ":failed to disable autounloading!\n")); 195 205 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);203 206 204 207 rc = ddi_soft_state_init(&g_pVBoxGuestSolarisState, sizeof(vboxguest_state_t), 1);
Note:
See TracChangeset
for help on using the changeset viewer.