Improve KASSERT() message.

This commit is contained in:
Gleb Smirnoff 2013-05-06 21:44:06 +00:00
parent 7a954bbbce
commit f8aa444783
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250313

View File

@ -1643,7 +1643,7 @@ pfsync_insert_state(struct pf_state *st)
}
KASSERT(st->sync_state == PFSYNC_S_NONE,
("%s: st->sync_state == PFSYNC_S_NONE", __func__));
("%s: st->sync_state %u", __func__, st->sync_state));
PFSYNC_LOCK(sc);
if (sc->sc_len == PFSYNC_MINPKT)
@ -1966,7 +1966,7 @@ pfsync_q_ins(struct pf_state *st, int q)
PFSYNC_LOCK_ASSERT(sc);
KASSERT(st->sync_state == PFSYNC_S_NONE,
("%s: st->sync_state == PFSYNC_S_NONE", __func__));
("%s: st->sync_state %u", __func__, st->sync_state));
KASSERT(sc->sc_len >= PFSYNC_MINPKT, ("pfsync pkt len is too low %zu",
sc->sc_len));