Module Name:    src
Committed By:   rmind
Date:           Sun Jun 28 15:30:30 UTC 2009

Modified Files:
        src/sys/kern: subr_prf.c

Log Message:
panic: use MI cpu_index(), instead of cpu_number(), which could be sparse.


To generate a diff of this commit:
cvs rdiff -u -r1.135 -r1.136 src/sys/kern/subr_prf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/subr_prf.c
diff -u src/sys/kern/subr_prf.c:1.135 src/sys/kern/subr_prf.c:1.136
--- src/sys/kern/subr_prf.c:1.135	Sat Jun 20 11:10:40 2009
+++ src/sys/kern/subr_prf.c	Sun Jun 28 15:30:30 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: subr_prf.c,v 1.135 2009/06/20 11:10:40 cegger Exp $	*/
+/*	$NetBSD: subr_prf.c,v 1.136 2009/06/28 15:30:30 rmind Exp $	*/
 
 /*-
  * Copyright (c) 1986, 1988, 1991, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v 1.135 2009/06/20 11:10:40 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v 1.136 2009/06/28 15:30:30 rmind Exp $");
 
 #include "opt_ddb.h"
 #include "opt_ipkdb.h"
@@ -279,13 +279,13 @@
 
 		if (intrace == 0) {
 			intrace = 1;
-			printf("cpu%lu: Begin traceback...\n",
-			    (u_long)cpu_number());
+			printf("cpu%u: Begin traceback...\n",
+			    cpu_index(curcpu()));
 			db_stack_trace_print(
 			    (db_expr_t)(intptr_t)__builtin_frame_address(0),
 			    true, 65535, "", printf);
-			printf("cpu%lu: End traceback...\n",
-			    (u_long)cpu_number());
+			printf("cpu%u: End traceback...\n",
+			    cpu_index(curcpu()));
 			intrace = 0;
 		} else
 			printf("Faulted in mid-traceback; aborting...");

Reply via email to