Changeset 4925 in vbox for trunk/src/VBox/HostDrivers/Support/darwin/SUPLib-darwin.cpp
- Timestamp:
- Sep 20, 2007 12:07:28 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/darwin/SUPLib-darwin.cpp
r4882 r4925 125 125 if (g_hDevice < 0) 126 126 { 127 int rc = errno; 128 LogRel(("Failed to open \"%s\", errno=%d\n", rc)); 127 int rc; 128 switch (errno) 129 { 130 case ENODEV: rc = VERR_VM_DRIVER_LOAD_ERROR; break; 131 case EPERM: 132 case EACCES: rc = VERR_VM_DRIVER_NOT_ACCESSIBLE; break; 133 case ENOENT: rc = VERR_VM_DRIVER_NOT_INSTALLED; break; 134 default: rc = VERR_VM_DRIVER_OPEN_ERROR; break; 135 } 136 LogRel(("Failed to open \"%s\", errno=%d, rc=%Vrc\n", DEVICE_NAME, errno, rc)); 137 129 138 kr = IOServiceClose(g_Connection); 130 139 if (kr != kIOReturnSuccess) 131 140 LogRel(("Warning: IOServiceClose(%p) returned %d\n", g_Connection, kr)); 132 return RTErrConvertFromErrno(rc);141 return rc; 133 142 } 134 143
Note:
See TracChangeset
for help on using the changeset viewer.