summaryrefslogtreecommitdiff
path: root/sys/ddb/db_command.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2004-06-25 08:41:20 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2004-06-25 08:41:20 +0000
commitb931374cf34889aaeeb87e3d70dd7c41e3d593bf (patch)
tree3ab69a26487321d6af4330d63ced4be9d1993b28 /sys/ddb/db_command.c
parentdcccc87f9e630f68e565a5746279342b43553c8f (diff)
Instead of accessing ci_dev (that's an MI field), provide a marco that
translates a cpu_info structure into a human-readable cpu number. drahn@ deraadt@ ok
Diffstat (limited to 'sys/ddb/db_command.c')
-rw-r--r--sys/ddb/db_command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index b47ae3b9ddf..c4ac1ec31d0 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_command.c,v 1.37 2004/06/21 22:41:12 andreas Exp $ */
+/* $OpenBSD: db_command.c,v 1.38 2004/06/25 08:41:19 art Exp $ */
/* $NetBSD: db_command.c,v 1.20 1996/03/30 22:30:05 christos Exp $ */
/*
@@ -523,7 +523,7 @@ db_command_loop()
db_output_line = 0;
#ifdef MULTIPROCESSOR
- db_printf("ddb{%d}> ", curcpu()->ci_dev.dv_unit);
+ db_printf("ddb{%d}> ", CPU_INFO_UNIT(curcpu()));
#else
db_printf("ddb> ");
#endif