Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/next68k/stand/boot Disable DEBUG options properly.
details: https://anonhg.NetBSD.org/src/rev/9ac623a7e8d2
branches: trunk
changeset: 373436:9ac623a7e8d2
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Thu Feb 09 15:20:40 2023 +0000
description:
Disable DEBUG options properly.
diffstat:
sys/arch/next68k/stand/boot/Makefile | 11 +++++++----
sys/arch/next68k/stand/boot/scsi.c | 4 ++--
sys/arch/next68k/stand/boot/sd.c | 4 ++--
3 files changed, 11 insertions(+), 8 deletions(-)
diffs (62 lines):
diff -r 2e0d3b58e028 -r 9ac623a7e8d2 sys/arch/next68k/stand/boot/Makefile
--- a/sys/arch/next68k/stand/boot/Makefile Thu Feb 09 15:00:56 2023 +0000
+++ b/sys/arch/next68k/stand/boot/Makefile Thu Feb 09 15:20:40 2023 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2023/02/04 14:38:09 tsutsui Exp $
+# $NetBSD: Makefile,v 1.31 2023/02/09 15:20:40 tsutsui Exp $
NOMAN= # defined
@@ -24,10 +24,13 @@
# XXX make defs arch-indep.
INCLUDES+= -I${.OBJDIR} -I${S}/arch -I${S} -I${S}/lib/libsa
-DEFS+= -D_STANDALONE -DMC68040 -DSUPPORT_BOOTP -DSUPPORT_DHCP -DDEBUG -DSD_DEBUG -DSCSI_DEBUG # -DEN_DEBUG -DNETIF_DEBUG
-SAMISCCPPFLAGS= -DSUPPORT_DHCP -DSUPPORT_BOOTP -DSA_EXEC_ANYOWNER # -DBOOTP_DEBUG -DETHER_DEBUG -DNET_DEBUG # -DNETIF_DEBUG -DNFS_DEBUG -DARP_DEBUG
+DEFS+= -D_STANDALONE -DMC68040 -DSUPPORT_BOOTP -DSUPPORT_DHCP
+#DEFS+= -DDEBUG -DSD_DEBUG -DSCSI_DEBUG -DEN_DEBUG -DNETIF_DEBUG
+SAMISCCPPFLAGS= -DSUPPORT_DHCP -DSUPPORT_BOOTP -DSA_EXEC_ANYOWNER
+#SAMISCCPPFLAGS+= -DBOOTP_DEBUG -DETHER_DEBUG -DNET_DEBUG-DNETIF_DEBUG
+#SAMISCCPPFLAGS+= -DNFS_DEBUG -DARP_DEBUG
WARNS=1
-CFLAGS+= -ffreestanding -nostdinc ${INCLUDES} ${DEFS}
+CFLAGS+= -ffreestanding -nostdinc ${INCLUDES} ${DEFS}
CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
AFLAGS+= ${INCLUDES}
# XXX SHOULD NOT NEED TO DEFINE THESE!
diff -r 2e0d3b58e028 -r 9ac623a7e8d2 sys/arch/next68k/stand/boot/scsi.c
--- a/sys/arch/next68k/stand/boot/scsi.c Thu Feb 09 15:00:56 2023 +0000
+++ b/sys/arch/next68k/stand/boot/scsi.c Thu Feb 09 15:20:40 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scsi.c,v 1.11 2023/02/04 14:38:09 tsutsui Exp $ */
+/* $NetBSD: scsi.c,v 1.12 2023/02/09 15:20:40 tsutsui Exp $ */
/*
* Copyright (c) 1994, 1997 Rolf Grossmann
* All rights reserved.
@@ -61,7 +61,7 @@
#define NDPRINTF(x)
#define PRINTF(x)
/* printf x; */
-#ifdef xSCSI_DEBUG
+#ifdef SCSI_DEBUG
#define DPRINTF(x) printf x;
#else
#define DPRINTF(x)
diff -r 2e0d3b58e028 -r 9ac623a7e8d2 sys/arch/next68k/stand/boot/sd.c
--- a/sys/arch/next68k/stand/boot/sd.c Thu Feb 09 15:00:56 2023 +0000
+++ b/sys/arch/next68k/stand/boot/sd.c Thu Feb 09 15:20:40 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sd.c,v 1.15 2023/02/09 15:00:56 tsutsui Exp $ */
+/* $NetBSD: sd.c,v 1.16 2023/02/09 15:20:40 tsutsui Exp $ */
/*
* Copyright (c) 1994 Rolf Grossmann
* All rights reserved.
@@ -40,7 +40,7 @@
#include <lib/libkern/libkern.h> /* for bzero() */
#include "dmareg.h"
-#ifdef xSD_DEBUG
+#ifdef SD_DEBUG
#define DPRINTF(x) printf x;
#else
#define DPRINTF(x)
Home |
Main Index |
Thread Index |
Old Index