- Timestamp:
- Jan 8, 2008 8:45:43 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 27116
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp
r6268 r6271 740 740 ioctl_error: 741 741 PDMDrvHlpVMSetRuntimeError(pDrvIns, false, "DrvHostSerialFail", 742 N_("Ioctl failed for serial host device '%s' ( error %d)"),743 pData->pszDevicePath, errno);742 N_("Ioctl failed for serial host device '%s' (%Vrc). The device will not work properly"), 743 pData->pszDevicePath, RTErrConvertFromErrno(errno)); 744 744 break; 745 745 } … … 765 765 /** 766 766 * Unblock the monitor thread so it can respond to a state change. 767 * We need to execute this code exactly once during initialization. 768 * But we don't want to block --- therefore this dedicated thread. 767 769 * 768 770 * @returns a VBox status code. … … 773 775 { 774 776 PDRVHOSTSERIAL pData = PDMINS2DATA(pDrvIns, PDRVHOSTSERIAL); 775 int rc = VINF_SUCCESS;777 int rc; 776 778 777 779 /* … … 794 796 */ 795 797 rc = ioctl(pData->DeviceFile, TIOCMBIC, TIOCM_LOOP); 796 if (rc <0)797 goto ioctl_error;798 if (rc >= 0) 799 return VINF_SUCCESS; 798 800 799 801 ioctl_error: 800 802 PDMDrvHlpVMSetRuntimeError(pDrvIns, false, "DrvHostSerialFail", 801 N_("Ioctl failed for serial host device '%s' (error %d)"), 802 pData->pszDevicePath, errno); 803 803 N_("Ioctl failed for serial host device '%s' (%Vrc). The device will not work properly"), 804 pData->pszDevicePath, RTErrConvertFromErrno(errno)); 804 805 return VINF_SUCCESS; 805 806 }
Note:
See TracChangeset
for help on using the changeset viewer.