Module Name: src Committed By: andvar Date: Sun Aug 27 18:36:55 UTC 2023
Modified Files: src/sys/arch/amiga/dev: toccata.c Log Message: amiga/toccata(4): define ad1848debug to fix AUDIO_DEBUG enabled amiga build. The code is taken from sys/dev/isa/ad1848_isa.c for consistency. Unsure, if new debug level variable wouldn't be better or it is needed at all. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/arch/amiga/dev/toccata.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/arch/amiga/dev/toccata.c diff -u src/sys/arch/amiga/dev/toccata.c:1.21 src/sys/arch/amiga/dev/toccata.c:1.22 --- src/sys/arch/amiga/dev/toccata.c:1.21 Sat Feb 29 05:51:10 2020 +++ src/sys/arch/amiga/dev/toccata.c Sun Aug 27 18:36:55 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: toccata.c,v 1.21 2020/02/29 05:51:10 isaki Exp $ */ +/* $NetBSD: toccata.c,v 1.22 2023/08/27 18:36:55 andvar Exp $ */ /*- * Copyright (c) 1998, 1999, 2001, 2002 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: toccata.c,v 1.21 2020/02/29 05:51:10 isaki Exp $"); +__KERNEL_RCSID(0, "$NetBSD: toccata.c,v 1.22 2023/08/27 18:36:55 andvar Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -49,6 +49,12 @@ __KERNEL_RCSID(0, "$NetBSD: toccata.c,v #include <amiga/dev/zbusvar.h> #include <amiga/amiga/isr.h> +#ifdef AUDIO_DEBUG +#define DPRINTF(x) if (ad1848debug) printf x +extern int ad1848debug; +#else +#define DPRINTF(x) +#endif /* Register offsets. XXX All of this is guesswork. */