diff options
| author | martin <martin@NetBSD.org> | 2016-12-11 10:28:00 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2016-12-11 10:28:00 +0000 |
| commit | 809c413da53878b96e60d47ee6d06106a62645bd (patch) | |
| tree | 7ecb586541843f05f2ddaa1c5bffe09df957323e /sys/dev | |
| parent | fc8e8e6397dfdf27e394ae9a2acc7248a2ca5b9f (diff) | |
Improve a panic message with a bit details
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/audio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c index 5f59d329135..01690889438 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -1,4 +1,4 @@ -/* $NetBSD: audio.c,v 1.276 2016/12/11 07:36:30 nat Exp $ */ +/* $NetBSD: audio.c,v 1.277 2016/12/11 10:28:00 martin Exp $ */ /*- * Copyright (c) 2016 Nathanial Sloss <nathanialsloss@yahoo.com.au> @@ -148,7 +148,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.276 2016/12/11 07:36:30 nat Exp $"); +__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.277 2016/12/11 10:28:00 martin Exp $"); #include "audio.h" #if NAUDIO > 0 @@ -1713,7 +1713,7 @@ audio_init_ringbuffer(struct audio_softc *sc, struct audio_ringbuffer *rp, blksize = sc->hw_if->round_blocksize(sc->hw_hdl, blksize, mode, &rp->s.param); if (blksize <= 0) - panic("audio_init_ringbuffer: blksize"); + panic("audio_init_ringbuffer: blksize=%d", blksize); nblks = rp->s.bufsize / blksize; DPRINTF(("audio_init_ringbuffer: final blksize=%d\n", blksize)); |
