From caab163340287b7a41b54aa03ac78f8596bfa2f7 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 31 Oct 2008 21:39:51 +0000 Subject: clean up error messages as suggested by jakemsr --- sys/dev/pci/azalia.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sys/dev/pci/azalia.c') diff --git a/sys/dev/pci/azalia.c b/sys/dev/pci/azalia.c index 2e39f8d06ef..cac0961a309 100644 --- a/sys/dev/pci/azalia.c +++ b/sys/dev/pci/azalia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: azalia.c,v 1.65 2008/10/31 06:52:15 jakemsr Exp $ */ +/* $OpenBSD: azalia.c,v 1.66 2008/10/31 21:39:50 deraadt Exp $ */ /* $NetBSD: azalia.c,v 1.20 2006/05/07 08:31:44 kent Exp $ */ /*- @@ -721,7 +721,7 @@ azalia_attach_intr(struct device *self) /* Use the first audio codec */ az->codecno = c; - printf("%s: codec[s]: ", XNAME(az)); + printf("%s: codecs: ", XNAME(az)); for (i = 0; i < az->ncodecs; i++) { azalia_print_codec(&az->codecs[i]); if (i < az->ncodecs - 1) @@ -1455,8 +1455,8 @@ azalia_codec_construct_format(codec_t *this, int newdac, int newadc) if (bits_rates & COP_PCM_B32) nbits++; if (nbits == 0) { - printf("%s: %s/%d invalid PCM format: 0x%8.8x\n", - XNAME(this->az), __FILE__, __LINE__, bits_rates); + printf("%s: invalid DAC PCM format: 0x%8.8x\n", + XNAME(this->az), bits_rates); return -1; } variation = group->nconv * nbits; @@ -1476,8 +1476,8 @@ azalia_codec_construct_format(codec_t *this, int newdac, int newadc) if (bits_rates & COP_PCM_B32) nbits++; if (nbits == 0) { - printf("%s: %s/%d invalid PCM format: 0x%8.8x\n", - XNAME(this->az), __FILE__, __LINE__, bits_rates); + printf("%s: invalid ADC PCM format: 0x%8.8x\n", + XNAME(this->az), bits_rates); return -1; } variation += group->nconv * nbits; -- cgit v1.2.3