summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc/ddb
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2016-09-09 19:42:31 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2016-09-09 19:42:31 +0000
commitfbe8ac64e7e8917ecf087aebedcb7b5056398388 (patch)
treefd8df168edca8c3c3de1214a13782f66274d59bb /sys/arch/powerpc/ddb
parentff9544ff3bfc6d705838be11285aba8a1621a2a0 (diff)
don't hardcode the filename in an error message; use the function name instead
ok jsg@ (who spotted the powerpc straggler too) millert@
Diffstat (limited to 'sys/arch/powerpc/ddb')
-rw-r--r--sys/arch/powerpc/ddb/db_trace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/powerpc/ddb/db_trace.c b/sys/arch/powerpc/ddb/db_trace.c
index df6e91ccbef..f53571fde9a 100644
--- a/sys/arch/powerpc/ddb/db_trace.c
+++ b/sys/arch/powerpc/ddb/db_trace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_trace.c,v 1.8 2016/03/05 17:24:27 mpi Exp $ */
+/* $OpenBSD: db_trace.c,v 1.9 2016/09/09 19:42:30 jasper Exp $ */
/* $NetBSD: db_trace.c,v 1.15 1996/02/22 23:23:41 gwr Exp $ */
/*
@@ -136,7 +136,7 @@ db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count,
if (trace_proc) {
struct proc *p = pfind((pid_t)addr);
if (p == NULL) {
- (*pr) ("db_trace.c: process not found\n");
+ (*pr) ("%s: process not found\n", __func__);
return;
}
addr = p->p_addr->u_pcb.pcb_sp;