diff options
author | keramida <keramida@FreeBSD.org> | 2001-11-12 20:50:06 +0000 |
---|---|---|
committer | keramida <keramida@FreeBSD.org> | 2001-11-12 20:50:06 +0000 |
commit | d820d4cb55d722266ab6c8ed87e0ecc082da0024 (patch) | |
tree | 070d1c604c2ef33f96aa2a85b845bd0c8f2514cb /sys/kern/uipc_socket.c | |
parent | c7338726d95c9981686875afc8726078ab7ff821 (diff) | |
download | FreeBSD-src-d820d4cb55d722266ab6c8ed87e0ecc082da0024.zip FreeBSD-src-d820d4cb55d722266ab6c8ed87e0ecc082da0024.tar.gz |
Make KASSERT's print the values that triggered a panic.
Reviewed by: alfred
Diffstat (limited to 'sys/kern/uipc_socket.c')
-rw-r--r-- | sys/kern/uipc_socket.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index a7ac484..cd4bfd8 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -777,7 +777,8 @@ dontblock: uio->uio_td->td_proc->p_stats->p_ru.ru_msgrcv++; nextrecord = m->m_nextpkt; if (pr->pr_flags & PR_ADDR) { - KASSERT(m->m_type == MT_SONAME, ("receive 1a")); + KASSERT(m->m_type == MT_SONAME, + ("m->m_type == %d", m->m_type)); orig_resid = 0; if (psa) *psa = dup_sockaddr(mtod(m, struct sockaddr *), @@ -832,7 +833,7 @@ dontblock: break; else KASSERT(m->m_type == MT_DATA || m->m_type == MT_HEADER, - ("receive 3")); + ("m->m_type == %d", m->m_type)); so->so_state &= ~SS_RCVATMARK; len = uio->uio_resid; if (so->so_oobmark && len > so->so_oobmark - offset) |