summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/dev/cpu.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-09-14 22:29:20 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-09-14 22:29:20 +0000
commit229a45eca660b747ee7a7409a500ea867c386548 (patch)
tree3a96156ff8bda526d015c7e0da186ed3ef720de3 /sys/arch/hppa/dev/cpu.c
parentefb41b6b9f175ee28ebbae3623b30aebf982dc28 (diff)
do not print anything about btlb if there is none
Diffstat (limited to 'sys/arch/hppa/dev/cpu.c')
-rw-r--r--sys/arch/hppa/dev/cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/dev/cpu.c b/sys/arch/hppa/dev/cpu.c
index 3f8b516bc88..0d57051a56d 100644
--- a/sys/arch/hppa/dev/cpu.c
+++ b/sys/arch/hppa/dev/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.24 2004/04/07 18:24:19 mickey Exp $ */
+/* $OpenBSD: cpu.c,v 1.25 2004/09/14 22:29:19 mickey Exp $ */
/*
* Copyright (c) 1998-2003 Michael Shalayeff
@@ -151,7 +151,7 @@ cpuattach(parent, self, aux)
if (pdc_btlb.finfo.num_c)
printf(", %u BTLB\n", pdc_btlb.finfo.num_c);
- else
+ else if (pdc_btlb.finfo.num_i || pdc_btlb.finfo.num_d)
printf(", %u/%u D/I BTLBs\n",
pdc_btlb.finfo.num_i, pdc_btlb.finfo.num_d);