From 5613743e47de9833d74e42d181433dd9ef3f5f90 Mon Sep 17 00:00:00 2001 From: Deanna Phillips Date: Fri, 16 Nov 2007 20:36:26 +0000 Subject: No need to mention which codec is being used if there's only one. --- sys/dev/pci/azalia.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/azalia.c b/sys/dev/pci/azalia.c index 7a4e06bf377..fa675b09e9e 100644 --- a/sys/dev/pci/azalia.c +++ b/sys/dev/pci/azalia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: azalia.c,v 1.42 2007/11/14 22:51:37 deanna Exp $ */ +/* $OpenBSD: azalia.c,v 1.43 2007/11/16 20:36:25 deanna Exp $ */ /* $NetBSD: azalia.c,v 1.20 2006/05/07 08:31:44 kent Exp $ */ /*- @@ -693,14 +693,16 @@ azalia_attach_intr(struct device *self) /* Use the first audio codec */ az->codecno = c; - printf("%s: ", XNAME(az)); + printf("%s: codec[s]: ", XNAME(az)); for (i = 0; i < az->ncodecs; i++) { azalia_print_codec(&az->codecs[i]); if (i < az->ncodecs - 1) printf(", "); } - printf(" codecs; using "); - azalia_print_codec(&az->codecs[az->codecno]); + if (az->ncodecs > 1) { + printf(", using "); + azalia_print_codec(&az->codecs[az->codecno]); + } printf("\n"); if (azalia_stream_init(&az->pstream, az, az->nistreams + 0, -- cgit v1.2.3