summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc/ddb/db_trace.c
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2014-07-13 12:11:02 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2014-07-13 12:11:02 +0000
commit80e50dabeaa559b5257135a152de27644db4432f (patch)
tree709cd9b655dfef589834933b2becb4db65e32a28 /sys/arch/powerpc/ddb/db_trace.c
parentf1b98cae21f0f62799fbbc23fee97381c77bda62 (diff)
use nitems() instead of handrolling something identical
ok mpi@ sthen@
Diffstat (limited to 'sys/arch/powerpc/ddb/db_trace.c')
-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 73bff090fa5..e233eca7c0f 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.4 2003/10/15 01:06:13 drahn Exp $ */
+/* $OpenBSD: db_trace.c,v 1.5 2014/07/13 12:11:01 jasper Exp $ */
/* $NetBSD: db_trace.c,v 1.15 1996/02/22 23:23:41 gwr Exp $ */
/*
@@ -86,7 +86,7 @@ struct db_variable db_regs[] = {
{ "msr", (long *)&(DDB_REGS->tf.srr1), FCN_NULL },
};
-struct db_variable *db_eregs = db_regs + sizeof(db_regs)/sizeof(db_regs[0]);
+struct db_variable *db_eregs = db_regs + nitems(db_regs);
extern label_t *db_recover;