summaryrefslogtreecommitdiff
path: root/sys/dev/pci/hifn7751.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-17 00:33:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-17 00:33:35 +0000
commit883add91ef31ad111faa5f848c19d274ff9f3507 (patch)
treee9d32c8f5df86f80033e038ed6cd268d33a40b6f /sys/dev/pci/hifn7751.c
parentb50b24ebdbf3b4e9a94318ea9ccec55d94c23b6f (diff)
simplify dmesg printout (all models have all crypto)
Diffstat (limited to 'sys/dev/pci/hifn7751.c')
-rw-r--r--sys/dev/pci/hifn7751.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/sys/dev/pci/hifn7751.c b/sys/dev/pci/hifn7751.c
index 59a9e19b9ee..69eadccc5ad 100644
--- a/sys/dev/pci/hifn7751.c
+++ b/sys/dev/pci/hifn7751.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hifn7751.c,v 1.119 2002/05/07 20:37:24 jason Exp $ */
+/* $OpenBSD: hifn7751.c,v 1.120 2002/05/17 00:33:34 deraadt Exp $ */
/*
* Invertex AEON / Hifn 7751 driver
@@ -275,7 +275,7 @@ hifn_attach(parent, self, aux)
rbase = 'M';
rseg /= 1024;
}
- printf(", %d%cB %cram, %s\n", rseg, rbase,
+ printf("%d%cB %cram, %s\n", rseg, rbase,
sc->sc_drammodel ? 'd' : 's', intrstr);
sc->sc_cid = crypto_get_driverid(0);
@@ -675,18 +675,14 @@ report:
WRITE_REG_0(sc, HIFN_0_PUCNFG, ramcfg);
WRITE_REG_1(sc, HIFN_1_DMA_CNFG, dmacfg);
+ printf(": ");
switch (encl) {
- case HIFN_PUSTAT_ENA_0:
- printf(": no encr/auth");
- break;
case HIFN_PUSTAT_ENA_1:
- printf(": DES");
- break;
case HIFN_PUSTAT_ENA_2:
- printf(": 3DES");
break;
+ case HIFN_PUSTAT_ENA_0:
default:
- printf(": disabled");
+ printf("disabled, ");
break;
}