From owner-p4-projects@FreeBSD.ORG Sat Jun 19 07:10:32 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id C0EF716A4D0; Sat, 19 Jun 2004 07:10:31 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94DE616A4CE for ; Sat, 19 Jun 2004 07:10:31 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DF9B43D45 for ; Sat, 19 Jun 2004 07:10:31 +0000 (GMT) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i5J7ACsi096368 for ; Sat, 19 Jun 2004 07:10:12 GMT (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i5J7ABZK096365 for perforce@freebsd.org; Sat, 19 Jun 2004 07:10:11 GMT (envelope-from marcel@freebsd.org) Date: Sat, 19 Jun 2004 07:10:11 GMT Message-Id: <200406190710.i5J7ABZK096365@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to marcel@freebsd.org using -f From: Marcel Moolenaar To: Perforce Change Reviews Subject: PERFORCE change 55293 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jun 2004 07:10:32 -0000 http://perforce.freebsd.org/chv.cgi?CH=55293 Change 55293 by marcel@marcel_nfs on 2004/06/19 07:09:11 Cast td_tid to long for printing. This makes it easy to change lwpid_t to a pointer type later, if such would be beneficial. Affected files ... .. //depot/projects/gdb/sys/ddb/db_thread.c#7 edit Differences ... ==== //depot/projects/gdb/sys/ddb/db_thread.c#7 (text+ko) ==== @@ -41,7 +41,7 @@ void db_print_thread(void) { - db_printf("[thread %d]\n", kdb_thread->td_tid); + db_printf("[thread %ld]\n", (long)kdb_thread->td_tid); } void @@ -65,8 +65,8 @@ if (thr != NULL) { err = kdb_thr_select(thr); if (err != 0) { - db_printf("unable to switch to thread %d\n", - (int)thr->td_tid); + db_printf("unable to switch to thread %ld\n", + (long)thr->td_tid); return; } db_dot = PC_REGS(); @@ -93,7 +93,7 @@ pager_quit = 0; thr = kdb_thr_first(); while (!pager_quit && thr != NULL) { - db_printf(" %6d (%p) ", (int)thr->td_tid, thr); + db_printf(" %6ld (%p) ", (long)thr->td_tid, thr); prev_jb = kdb_jmpbuf(jb); if (setjmp(jb) == 0) { if (db_trace_thread(thr, 1) != 0)