Make KASSERT's print the values that triggered a panic.

Reviewed by:	alfred
This commit is contained in:
Giorgos Keramidas 2001-11-12 20:50:06 +00:00
parent 5b29d6e906
commit 074df01866
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86305

View File

@ -777,7 +777,8 @@ soreceive(so, psa, uio, mp0, controlp, flagsp)
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 @@ soreceive(so, psa, uio, mp0, controlp, flagsp)
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)