From 91d9c8c22f29c3daeb2fcfbe12b24c5e93fc2924 Mon Sep 17 00:00:00 2001 From: cl Date: Fri, 2 Jan 2004 14:29:22 +0000 Subject: [PATCH] pthread__upcall: output LWPid in SA_UPCALL_BLOCKED case --- lib/libpthread/pthread_sa.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libpthread/pthread_sa.c b/lib/libpthread/pthread_sa.c index fd762df159e0..8f6830dc67cf 100644 --- a/lib/libpthread/pthread_sa.c +++ b/lib/libpthread/pthread_sa.c @@ -1,4 +1,4 @@ -/* $NetBSD: pthread_sa.c,v 1.23 2004/01/02 14:13:16 cl Exp $ */ +/* $NetBSD: pthread_sa.c,v 1.24 2004/01/02 14:29:22 cl Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__RCSID("$NetBSD: pthread_sa.c,v 1.23 2004/01/02 14:13:16 cl Exp $"); +__RCSID("$NetBSD: pthread_sa.c,v 1.24 2004/01/02 14:29:22 cl Exp $"); #include #include @@ -141,8 +141,8 @@ pthread__upcall(int type, struct sa_t *sas[], int ev, int intr, void *arg) case SA_UPCALL_BLOCKED: PTHREADD_ADD(PTHREADD_UP_BLOCK); t = pthread__sa_id(sas[1]); - SDPRINTF(("(up %p) blocker %d %p(%d)\n", self, 1, t, - t->pt_type)); + SDPRINTF(("(up %p) blocker %d %p(%d)\n", self, + sas[1]->sa_id, t, t->pt_type)); t->pt_blockuc = sas[1]->sa_context; t->pt_blockedlwp = sas[1]->sa_id; t->pt_blockgen++;