From 48c6dc65852d4609b3c1ae99c6abede79f258663 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Wed, 5 Oct 2011 14:14:20 +0200 Subject: [PATCH] better dprintfs --- aucat/wav.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/aucat/wav.c b/aucat/wav.c index 9ab2436..fe67e95 100644 --- a/aucat/wav.c +++ b/aucat/wav.c @@ -497,14 +497,11 @@ wav_init(struct wav *f) f->pstate = WAV_INIT; if ((f->mode & f->dev->mode) != f->mode) { #ifdef DEBUG - wav_dbg(f); - dbg_puts(": "); - dbg_puts("d = "); - dbg_putx(f->dev->mode); - dbg_puts(", f = "); - dbg_putx(f->mode); - - dbg_puts(": operation not supported by device\n"); + if (debug_level >= 1) { + wav_dbg(f); + dbg_puts(": "); + dbg_puts(": operation not supported by device\n"); + } #endif wav_exit(f); return 0;