Update the function name in several assertions in soreceive_dgram().

Approved by:	rwatson
MFC after:	3 days
This commit is contained in:
John Baldwin 2008-09-30 18:44:26 +00:00
parent 18aa158f77
commit c4688866d3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183503

View file

@ -1959,7 +1959,7 @@ soreceive_dgram(struct socket *so, struct sockaddr **psa, struct uio *uio,
SOCKBUF_LOCK_ASSERT(&so->so_rcv);
if (uio->uio_td)
uio->uio_td->td_ru.ru_msgrcv++;
KASSERT(m == so->so_rcv.sb_mb, ("soreceive: m != so->so_rcv.sb_mb"));
KASSERT(m == so->so_rcv.sb_mb, ("soreceive_dgram: m != sb_mb"));
SBLASTRECORDCHK(&so->so_rcv);
SBLASTMBUFCHK(&so->so_rcv);
nextrecord = m->m_nextpkt;
@ -1980,12 +1980,12 @@ soreceive_dgram(struct socket *so, struct sockaddr **psa, struct uio *uio,
return (0);
}
KASSERT(m->m_nextpkt == nextrecord,
("soreceive: post-control, nextrecord !sync"));
("soreceive_dgram: post-control, nextrecord !sync"));
if (nextrecord == NULL) {
KASSERT(so->so_rcv.sb_mb == m,
("soreceive: post-control, sb_mb!=m"));
("soreceive_dgram: post-control, sb_mb!=m"));
KASSERT(so->so_rcv.sb_lastrecord == m,
("soreceive: post-control, lastrecord!=m"));
("soreceive_dgram: lastrecord != m"));
}
SOCKBUF_LOCK_ASSERT(&so->so_rcv);