Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Fix so these files build with options DEBUG enabled.
details: https://anonhg.NetBSD.org/src/rev/428dd9daedd9
branches: trunk
changeset: 518718:428dd9daedd9
user: sommerfeld <sommerfeld%NetBSD.org@localhost>
date: Tue Dec 04 20:00:15 2001 +0000
description:
Fix so these files build with options DEBUG enabled.
The change to edc_mca.c may not work as I don't have any mca hardware.
diffstat:
sys/arch/i386/mca/mca_machdep.c | 6 +++---
sys/dev/mca/edc_mca.c | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (58 lines):
diff -r f9413cad0db4 -r 428dd9daedd9 sys/arch/i386/mca/mca_machdep.c
--- a/sys/arch/i386/mca/mca_machdep.c Tue Dec 04 19:56:55 2001 +0000
+++ b/sys/arch/i386/mca/mca_machdep.c Tue Dec 04 20:00:15 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mca_machdep.c,v 1.13 2001/12/03 22:50:44 jdolecek Exp $ */
+/* $NetBSD: mca_machdep.c,v 1.14 2001/12/04 20:00:16 sommerfeld Exp $ */
/*-
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mca_machdep.c,v 1.13 2001/12/03 22:50:44 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mca_machdep.c,v 1.14 2001/12/04 20:00:16 sommerfeld Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -545,7 +545,7 @@
if (size > 65536) {
panic("mca_dmamap_create: dmamap sz %ld > 65536",
- (long) size)
+ (long) size);
}
#endif
diff -r f9413cad0db4 -r 428dd9daedd9 sys/dev/mca/edc_mca.c
--- a/sys/dev/mca/edc_mca.c Tue Dec 04 19:56:55 2001 +0000
+++ b/sys/dev/mca/edc_mca.c Tue Dec 04 20:00:15 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: edc_mca.c,v 1.12 2001/12/02 17:04:41 jdolecek Exp $ */
+/* $NetBSD: edc_mca.c,v 1.13 2001/12/04 20:00:15 sommerfeld Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: edc_mca.c,v 1.12 2001/12/02 17:04:41 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: edc_mca.c,v 1.13 2001/12/04 20:00:15 sommerfeld Exp $");
#include "rnd.h"
@@ -391,10 +391,10 @@
sifr = le16toh(bus_space_read_2(sc->sc_iot, sc->sc_ioh, SIFR));
len = (sifr & 0xff00) >> 8;
#ifdef DEBUG
- if (len > DASD_MAX_CMD_RES_LEN)
+ if (len > EDC_MAX_CMD_RES_LEN)
panic("%s: maximum Status Length exceeded: %d > %d",
sc->sc_dev.dv_xname,
- len, DASD_MAX_CMD_RES_LEN);
+ len, EDC_MAX_CMD_RES_LEN);
#endif
/* Get command code */
Home |
Main Index |
Thread Index |
Old Index