diff options
author | ache <ache@FreeBSD.org> | 1997-11-05 00:23:26 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-11-05 00:23:26 +0000 |
commit | 66620581f269d4fbbabd944b67c762ea9193671f (patch) | |
tree | e3e0fcf9b0873bed4fcfb5ec5e82278d3b3510ca /sys/i386/isa/sound | |
parent | 6884713f083bf2e1b6eb4e9dacea74021a0617af (diff) | |
download | FreeBSD-src-66620581f269d4fbbabd944b67c762ea9193671f.zip FreeBSD-src-66620581f269d4fbbabd944b67c762ea9193671f.tar.gz |
Do not print config details twice (first variant comes from isa)
Format config messages properly (with initial snd0: prefix)
Diffstat (limited to 'sys/i386/isa/sound')
-rw-r--r-- | sys/i386/isa/sound/soundcard.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/i386/isa/sound/soundcard.c b/sys/i386/isa/sound/soundcard.c index 37601f0..a653a53 100644 --- a/sys/i386/isa/sound/soundcard.c +++ b/sys/i386/isa/sound/soundcard.c @@ -542,7 +542,8 @@ conf_printf(char *name, struct address_info * hw_config) if (!trace_init) return; - printf("<%s> ", name); + printf("snd0: <%s> ", name); +#if 0 if (hw_config->io_base != -1 ) printf("at 0x%03x", hw_config->io_base); @@ -554,7 +555,7 @@ conf_printf(char *name, struct address_info * hw_config) if (hw_config->dma2 != -1) printf(",%d", hw_config->dma2); } - +#endif } @@ -564,7 +565,10 @@ conf_printf2(char *name, int base, int irq, int dma, int dma2) if (!trace_init) return; - printf("<%s> at 0x%03x", name, base); + printf("snd0: <%s> ", name); +#if 0 + if (hw_config->io_base != -1 ) + printf("at 0x%03x", hw_config->io_base); if (irq) printf(" irq %d", irq); @@ -574,7 +578,7 @@ conf_printf2(char *name, int base, int irq, int dma, int dma2) if (dma2 != -1) printf(",%d", dma2); } - +#endif } |