Changeset 44175 in vbox
- Timestamp:
- Dec 19, 2012 6:16:25 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp
r44173 r44175 95 95 * Try open the device. 96 96 */ 97 int hDevice = open(fUnrestricted ? DEVICE_NAME_SYS : DEVICE_NAME_USR, O_RDWR, 0); 97 const char *pszDeviceNm = fUnrestricted ? DEVICE_NAME_SYS : DEVICE_NAME_USR 98 int hDevice = open(pszDeviceNm, O_RDWR, 0); 98 99 if (hDevice < 0) 99 100 { … … 101 102 * Try load the device. 102 103 */ 103 hDevice = open( fUnrestricted ? DEVICE_NAME_SYS : DEVICE_NAME_USR, O_RDWR, 0);104 hDevice = open(pszDeviceNm, O_RDWR, 0); 104 105 if (hDevice < 0) 105 106 { … … 114 115 default: rc = VERR_VM_DRIVER_OPEN_ERROR; break; 115 116 } 116 LogRel(("Failed to open \"%s\", errno=%d, rc=%Rrc\n", DEVICE_NAME, errno, rc));117 LogRel(("Failed to open \"%s\", errno=%d, rc=%Rrc\n", pszDeviceNm, errno, rc)); 117 118 return rc; 118 119 }
Note:
See TracChangeset
for help on using the changeset viewer.