Module Name:    src
Committed By:   mrg
Date:           Thu Jun 18 06:26:58 UTC 2009

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

Log Message:
when printing a ddb stack trace when entering ddb, include the cpu number


To generate a diff of this commit:
cvs rdiff -u -r1.133 -r1.134 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.133 src/sys/kern/subr_prf.c:1.134
--- src/sys/kern/subr_prf.c:1.133	Sat Apr 25 15:06:32 2009
+++ src/sys/kern/subr_prf.c	Thu Jun 18 06:26:58 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: subr_prf.c,v 1.133 2009/04/25 15:06:32 rmind Exp $	*/
+/*	$NetBSD: subr_prf.c,v 1.134 2009/06/18 06:26:58 mrg Exp $	*/
 
 /*-
  * Copyright (c) 1986, 1988, 1991, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v 1.133 2009/04/25 15:06:32 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v 1.134 2009/06/18 06:26:58 mrg Exp $");
 
 #include "opt_ddb.h"
 #include "opt_ipkdb.h"
@@ -279,11 +279,11 @@
 
 		if (intrace == 0) {
 			intrace = 1;
-			printf("Begin traceback...\n");
+			printf("cpu%d: Begin traceback...\n", cpu_number());
 			db_stack_trace_print(
 			    (db_expr_t)(intptr_t)__builtin_frame_address(0),
 			    true, 65535, "", printf);
-			printf("End traceback...\n");
+			printf("cpu%d: End traceback...\n", cpu_number());
 			intrace = 0;
 		} else
 			printf("Faulted in mid-traceback; aborting...");

Reply via email to