Module Name: src
Committed By: andvar
Date: Sun Sep 10 20:55:30 UTC 2023
Modified Files:
src/sys/arch/hpcmips/tx: tx39sib.c
Log Message:
rewrite tx39sib debug code to use debug.h DPRINTF definition.
also debug code uses dbg_bitmask_print(), thus build fails without the header.
fixes TX39SIBDEBUG enabled build.
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/hpcmips/tx/tx39sib.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/hpcmips/tx/tx39sib.c
diff -u src/sys/arch/hpcmips/tx/tx39sib.c:1.23 src/sys/arch/hpcmips/tx/tx39sib.c:1.24
--- src/sys/arch/hpcmips/tx/tx39sib.c:1.23 Sat Aug 7 16:18:54 2021
+++ src/sys/arch/hpcmips/tx/tx39sib.c Sun Sep 10 20:55:30 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: tx39sib.c,v 1.23 2021/08/07 16:18:54 thorpej Exp $ */
+/* $NetBSD: tx39sib.c,v 1.24 2023/09/10 20:55:30 andvar Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -34,9 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tx39sib.c,v 1.23 2021/08/07 16:18:54 thorpej Exp $");
-
-#undef TX39SIBDEBUG
+__KERNEL_RCSID(0, "$NetBSD: tx39sib.c,v 1.24 2023/09/10 20:55:30 andvar Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -53,11 +51,10 @@ __KERNEL_RCSID(0, "$NetBSD: tx39sib.c,v
#include "locators.h"
#ifdef TX39SIBDEBUG
-int tx39sibdebug = 0;
-#define DPRINTF(arg) if (tx39sibdebug) printf arg;
-#else
-#define DPRINTF(arg)
+#define DPRINTF_ENABLE
+#define DPRINTF_DEBUG tx39sibdebug
#endif
+#include <machine/debug.h>
int tx39sib_match(device_t, cfdata_t, void *);
void tx39sib_attach(device_t, device_t, void *);