From df919c5db520673762e51df729e9183079388c77 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Mon, 27 Jun 2005 19:24:52 +0000 Subject: [PATCH] Print out additional information for a magic number failure assertion. --- sys/kern/lwkt_token.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/lwkt_token.c b/sys/kern/lwkt_token.c index 7e735c7b02..5f4d433e7e 100644 --- a/sys/kern/lwkt_token.c +++ b/sys/kern/lwkt_token.c @@ -31,7 +31,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/kern/lwkt_token.c,v 1.20 2005/06/20 20:38:01 dillon Exp $ + * $DragonFly: src/sys/kern/lwkt_token.c,v 1.21 2005/06/27 19:24:52 dillon Exp $ */ #ifdef _KERNEL @@ -562,7 +562,7 @@ lwkt_reqtoken_remote(void *data) * We do not have to queue the token if we can give it away * immediately. Otherwise we queue it to our globaldata structure. */ - KKASSERT(ref->tr_magic == LWKT_TOKREF_MAGIC2); + KASSERT(ref->tr_magic == LWKT_TOKREF_MAGIC2, ("ref %p token %p magic %08x", ref, ref->tr_tok, ref->tr_magic)); if (lwkt_oktogiveaway_token(tok)) { if (tok->t_cpu == gd) tok->t_cpu = ref->tr_reqgd; -- 2.41.0