diff options
| author | ad <ad@NetBSD.org> | 2001-07-04 14:17:58 +0000 |
|---|---|---|
| committer | ad <ad@NetBSD.org> | 2001-07-04 14:17:58 +0000 |
| commit | 86e7fe72a47d8bbd19b404165e6d1a9f22442ee7 (patch) | |
| tree | 9fc75adcaccd50d30387eb464d85b41159630a7d /sys/dev | |
| parent | 3b7905c66f889006b47241fe3786dc811e027cf2 (diff) | |
Don't print the module description, since it doesn't mean much.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/tc/px.c | 4 | ||||
| -rw-r--r-- | sys/dev/tc/pxg.c | 25 |
2 files changed, 12 insertions, 17 deletions
diff --git a/sys/dev/tc/px.c b/sys/dev/tc/px.c index 833f12b98cb..237fba14c71 100644 --- a/sys/dev/tc/px.c +++ b/sys/dev/tc/px.c @@ -1,4 +1,4 @@ -/* $NetBSD: px.c,v 1.6 2001/04/22 16:44:41 thorpej Exp $ */ +/* $NetBSD: px.c,v 1.7 2001/07/04 14:17:58 ad Exp $ */ /*- * Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc. @@ -138,7 +138,7 @@ px_attach(struct device *parent, struct device *self, void *aux) px->px_si = si; tc_intr_establish(parent, ta->ta_cookie, IPL_TTY, px_intr, si); - printf(": 2DA, 8 plane, %dx%d stamp\n", si->si_stampw, si->si_stamph); + printf(": 8 plane, %dx%d stamp\n", si->si_stampw, si->si_stamph); stic_attach(self, si, console); } diff --git a/sys/dev/tc/pxg.c b/sys/dev/tc/pxg.c index 984ecaa3599..c762de65963 100644 --- a/sys/dev/tc/pxg.c +++ b/sys/dev/tc/pxg.c @@ -1,4 +1,4 @@ -/* $NetBSD: pxg.c,v 1.4 2001/03/04 13:32:25 ad Exp $ */ +/* $NetBSD: pxg.c,v 1.5 2001/07/04 14:17:58 ad Exp $ */ /*- * Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc. @@ -106,11 +106,11 @@ struct cfattach pxg_ca = { }; static const char *pxg_types[] = { - "PMAG-DA ", "LM-3DA", - "PMAG-FA ", "HE-3DA", - "PMAG-FB ", "HE+3DA", - "PMAGB-FA", "HE+3DA", - "PMAGB-FB", "HE+3DA", + "PMAG-DA ", + "PMAG-FA ", + "PMAG-FB ", + "PMAGB-FA", + "PMAGB-FB", }; static int @@ -121,7 +121,7 @@ pxg_match(struct device *parent, struct cfdata *match, void *aux) ta = aux; - for (i = 0; i < sizeof(pxg_types) / sizeof(pxg_types[0]); i += 2) + for (i = 0; i < sizeof(pxg_types) / sizeof(pxg_types[0]); i++) if (strncmp(pxg_types[i], ta->ta_modname, TC_ROM_LLEN) == 0) return (1); @@ -134,7 +134,7 @@ pxg_attach(struct device *parent, struct device *self, void *aux) struct stic_info *si; struct tc_attach_args *ta; struct pxg_softc *pxg; - int console, i; + int console; pxg = (struct pxg_softc *)self; ta = (struct tc_attach_args *)aux; @@ -157,13 +157,8 @@ pxg_attach(struct device *parent, struct device *self, void *aux) pxg->pxg_si = si; tc_intr_establish(parent, ta->ta_cookie, IPL_TTY, pxg_intr, si); - for (i = 0; i < sizeof(pxg_types) / sizeof(pxg_types[0]); i += 2) - if (strncmp(pxg_types[i], ta->ta_modname, TC_ROM_LLEN) == 0) - break; - - printf(": %s, %d plane, %dx%d stamp, %dkB SRAM\n", pxg_types[i + 1], - si->si_depth, si->si_stampw, si->si_stamph, - (int)si->si_buf_size >> 10); + printf(": %d plane, %dx%d stamp, %dkB SRAM\n", si->si_depth, + si->si_stampw, si->si_stamph, (int)si->si_buf_size >> 10); stic_attach(self, si, console); } |
