Fix kernelbuild when full debugging features are enabled.

Pointyhat:	hselasky @
MFC after:	2 weeks
This commit is contained in:
Hans Petter Selasky 2014-02-06 10:38:40 +00:00
parent b7e6051a78
commit 99b5dd8fbe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=261543
2 changed files with 2 additions and 2 deletions

View File

@ -838,7 +838,7 @@ urndis_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
DPRINTF("invalid dataoffset %u larger than %u\n",
msg.rm_dataoffset + msg.rm_datalen +
(uint32_t)__offsetof(struct urndis_packet_msg,
rm_dataoffset));
rm_dataoffset), actlen);
goto tr_setup;
} else if (msg.rm_datalen < (uint32_t)sizeof(struct ether_header)) {
ifp->if_ierrors++;

View File

@ -53,7 +53,7 @@ struct urndis_softc {
#define URNDIS_LOCK(sc) mtx_lock(&(sc)->sc_mtx)
#define URNDIS_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx)
#define URNDIS_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->sc_mtx, (x))
#define URNDIS_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->sc_mtx, (what))
#define RNDIS_STATUS_BUFFER_OVERFLOW 0x80000005L
#define RNDIS_STATUS_FAILURE 0xC0000001L