Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Improve a panic message with a bit details
details: https://anonhg.NetBSD.org/src/rev/73f7cc25843a
branches: trunk
changeset: 349475:73f7cc25843a
user: martin <martin%NetBSD.org@localhost>
date: Sun Dec 11 10:28:00 2016 +0000
description:
Improve a panic message with a bit details
diffstat:
sys/dev/audio.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a12bb684b88f -r 73f7cc25843a sys/dev/audio.c
--- a/sys/dev/audio.c Sun Dec 11 08:40:10 2016 +0000
+++ b/sys/dev/audio.c Sun Dec 11 10:28:00 2016 +0000
@@ -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@localhost>
@@ -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 @@
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));
Home |
Main Index |
Thread Index |
Old Index