VirtualBox

Changeset 6268 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 8, 2008 4:32:42 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
27112
Message:

AssertMsgFailed are NOP's in release builds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp

    r6262 r6268  
    784784    rc = ioctl(pData->DeviceFile, TIOCMBIS, TIOCM_LOOP);
    785785    if (rc < 0)
    786        AssertMsgFailed(("%s: Setting device into loopback mode failed. Cannot wake up the thread!!\n", __FUNCTION__));
     786        goto ioctl_error;
    787787
    788788    rc = ioctl(pData->DeviceFile, TIOCMBIS, TIOCM_RTS);
    789789    if (rc < 0)
    790         AssertMsgFailed(("%s: Setting bit failed. Cannot wake up thread!!\n", __FUNCTION__));
     790        goto ioctl_error;
    791791
    792792    /*
     
    795795    rc = ioctl(pData->DeviceFile, TIOCMBIC, TIOCM_LOOP);
    796796    if (rc < 0)
    797         AssertMsgFailed(("%s: Setting device into normal mode failed. Device is not in a working state!!\n", __FUNCTION__));
    798 
    799     return rc;
     797        goto ioctl_error;
     798
     799ioctl_error:
     800    PDMDrvHlpVMSetRuntimeError(pDrvIns, false, "DrvHostSerialFail",
     801                                N_("Ioctl failed for serial host device '%s' (error %d)"),
     802                                pData->pszDevicePath, errno);
     803
     804    return VINF_SUCCESS;
    800805}
    801806#endif /* RT_OS_LINUX */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette