Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/isa Cast bus_size_t to u_long for printing.
details: https://anonhg.NetBSD.org/src/rev/7a96560196bf
branches: trunk
changeset: 481897:7a96560196bf
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Feb 08 18:40:51 2000 +0000
description:
Cast bus_size_t to u_long for printing.
diffstat:
sys/dev/isa/cs89x0.c | 7 ++++---
sys/dev/isa/wdc_isa.c | 6 +++---
sys/dev/isa/wt.c | 6 +++---
3 files changed, 10 insertions(+), 9 deletions(-)
diffs (61 lines):
diff -r caeabe9ab911 -r 7a96560196bf sys/dev/isa/cs89x0.c
--- a/sys/dev/isa/cs89x0.c Tue Feb 08 18:31:02 2000 +0000
+++ b/sys/dev/isa/cs89x0.c Tue Feb 08 18:40:51 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cs89x0.c,v 1.12 2000/02/08 18:31:02 tron Exp $ */
+/* $NetBSD: cs89x0.c,v 1.13 2000/02/08 18:40:51 thorpej Exp $ */
/*
* Copyright 1997
@@ -447,8 +447,9 @@
maxsize = isa_dmamaxsize(sc->sc_ic, sc->sc_drq);
if (maxsize < CS8900_DMASIZE) {
- printf("%s: max DMA size %ld is less than required %d\n",
- sc->sc_dev.dv_xname, maxsize, CS8900_DMASIZE);
+ printf("%s: max DMA size %lu is less than required %d\n",
+ sc->sc_dev.dv_xname, (u_long)maxsize,
+ CS8900_DMASIZE);
goto after_dma_block;
}
diff -r caeabe9ab911 -r 7a96560196bf sys/dev/isa/wdc_isa.c
--- a/sys/dev/isa/wdc_isa.c Tue Feb 08 18:31:02 2000 +0000
+++ b/sys/dev/isa/wdc_isa.c Tue Feb 08 18:40:51 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wdc_isa.c,v 1.16 2000/02/07 22:07:31 thorpej Exp $ */
+/* $NetBSD: wdc_isa.c,v 1.17 2000/02/08 18:40:51 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -175,8 +175,8 @@
bus_size_t maxsize;
if ((maxsize = isa_dmamaxsize(sc->sc_ic, sc->sc_drq)) < MAXPHYS) {
- printf("%s: max DMA size %d is less than required %d\n",
- sc->sc_wdcdev.sc_dev.dv_xname, maxsize, MAXPHYS);
+ printf("%s: max DMA size %lu is less than required %d\n",
+ sc->sc_wdcdev.sc_dev.dv_xname, (u_long)maxsize, MAXPHYS);
sc->sc_wdcdev.cap &= ~WDC_CAPABILITY_DMA;
return;
}
diff -r caeabe9ab911 -r 7a96560196bf sys/dev/isa/wt.c
--- a/sys/dev/isa/wt.c Tue Feb 08 18:31:02 2000 +0000
+++ b/sys/dev/isa/wt.c Tue Feb 08 18:40:51 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wt.c,v 1.47 2000/02/07 22:07:31 thorpej Exp $ */
+/* $NetBSD: wt.c,v 1.48 2000/02/08 18:40:51 thorpej Exp $ */
/*
* Streamer tape driver.
@@ -271,8 +271,8 @@
sc->chan = ia->ia_drq;
if ((maxsize = isa_dmamaxsize(sc->sc_ic, sc->chan)) < MAXPHYS) {
- printf("%s: max DMA size %d is less than required %d\n",
- sc->sc_dev.dv_xname, maxsize, MAXPHYS);
+ printf("%s: max DMA size %lu is less than required %d\n",
+ sc->sc_dev.dv_xname, (u_long)maxsize, MAXPHYS);
return;
}
Home |
Main Index |
Thread Index |
Old Index