From 88edb375225d6bf6a87ea8b303bc01834738cdfd Mon Sep 17 00:00:00 2001 From: augustss Date: Fri, 15 May 1998 15:45:58 +0000 Subject: Be more verbose if attaching the audio device fails. --- sys/dev/audio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/audio.c b/sys/dev/audio.c index 2c80b1e685c..e52fccdb258 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -1,4 +1,4 @@ -/* $NetBSD: audio.c,v 1.84 1998/04/28 23:19:20 augustss Exp $ */ +/* $NetBSD: audio.c,v 1.85 1998/05/15 15:45:58 augustss Exp $ */ /* * Copyright (c) 1991-1993 Regents of the University of California. @@ -254,12 +254,14 @@ audioattach(parent, self, aux) error = audio_alloc_ring(sc, &sc->sc_pr, AU_RING_SIZE); if (error) { sc->hw_if = 0; + printf("audio: could not allocate play buffer\n"); return; } error = audio_alloc_ring(sc, &sc->sc_rr, AU_RING_SIZE); if (error) { audio_free_ring(sc, &sc->sc_pr); sc->hw_if = 0; + printf("audio: could not allocate record buffer\n"); return; } -- cgit