Module Name: src Committed By: oster Date: Mon Oct 16 13:31:33 UTC 2023
Modified Files: src/sys/dev: sequencer.c Log Message: Redo previous by making the DPRINT macro always expand to something. To generate a diff of this commit: cvs rdiff -u -r1.82 -r1.83 src/sys/dev/sequencer.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/sequencer.c diff -u src/sys/dev/sequencer.c:1.82 src/sys/dev/sequencer.c:1.83 --- src/sys/dev/sequencer.c:1.82 Sun Oct 15 18:13:37 2023 +++ src/sys/dev/sequencer.c Mon Oct 16 13:31:33 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: sequencer.c,v 1.82 2023/10/15 18:13:37 oster Exp $ */ +/* $NetBSD: sequencer.c,v 1.83 2023/10/16 13:31:33 oster Exp $ */ /* * Copyright (c) 1998, 2008 The NetBSD Foundation, Inc. @@ -55,7 +55,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sequencer.c,v 1.82 2023/10/15 18:13:37 oster Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sequencer.c,v 1.83 2023/10/16 13:31:33 oster Exp $"); #ifdef _KERNEL_OPT #include "midi.h" @@ -122,12 +122,12 @@ extern struct cfdriver sequencer_cd; ) #ifdef AUDIO_DEBUG -#define DPRINTF(x) if (sequencerdebug) printf x -#define DPRINTFN(n,x) if (sequencerdebug >= (n)) printf x +#define DPRINTF(x) do { if (sequencerdebug) printf x; } while (0) +#define DPRINTFN(n,x) do { if (sequencerdebug >= (n)) printf x; } while (0) int sequencerdebug = 0; #else -#define DPRINTF(x) -#define DPRINTFN(n,x) +#define DPRINTF(x) do { } while (0) +#define DPRINTFN(n,x) do { } while (0) #endif #define SEQ_NOTE_MAX 128 @@ -1224,9 +1224,8 @@ seq_timer_waitabs(struct sequencer_softc seq_timeout, sc); } #ifdef SEQUENCER_DEBUG - else if (tick < 0) { + else if (tick < 0) DPRINTF(("%s: ticks = %d\n", __func__, ticks)); - } #endif }