summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2008-10-31 21:39:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2008-10-31 21:39:51 +0000
commitcaab163340287b7a41b54aa03ac78f8596bfa2f7 (patch)
tree0e1941b80f46c3b4485611c08960d0ba0a392f78
parent33957fd3921e8a565e6b7ea2003ea028f339612f (diff)
clean up error messages as suggested by jakemsr
-rw-r--r--sys/dev/pci/azalia.c12
1 files changed, 6 insertions, 6 deletions
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;