Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Cast args correctly to match format strings.
details: https://anonhg.NetBSD.org/src/rev/7d425d4e192f
branches: trunk
changeset: 509235:7d425d4e192f
user: jmc <jmc%NetBSD.org@localhost>
date: Mon Apr 30 02:49:04 2001 +0000
description:
Cast args correctly to match format strings.
diffstat:
sys/dev/pci/pccbb.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r ecf20afff078 -r 7d425d4e192f sys/dev/pci/pccbb.c
--- a/sys/dev/pci/pccbb.c Mon Apr 30 02:46:20 2001 +0000
+++ b/sys/dev/pci/pccbb.c Mon Apr 30 02:49:04 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pccbb.c,v 1.62 2001/04/12 18:18:31 thorpej Exp $ */
+/* $NetBSD: pccbb.c,v 1.63 2001/04/30 02:49:04 jmc Exp $ */
/*
* Copyright (c) 1998, 1999 and 2000
@@ -463,7 +463,7 @@
NULL)) {
printf("%s: can't map socket base address"
" 0x%lx: io mode\n", sc->sc_dev.dv_xname,
- sockbase);
+ (unsigned long)sockbase);
/* give up... allocate reg space via rbus. */
sc->sc_base_memh = 0;
pci_conf_write(pc, pa->pa_tag, PCI_SOCKBASE, 0);
@@ -3066,9 +3066,9 @@
if ((chainp->wc_end - chainp->wc_start) != (size - 1)) {
printf("pccbb_winlist_delete: window 0x%lx size "
"inconsistent: 0x%lx, 0x%lx\n",
- chainp->wc_start,
- chainp->wc_end - chainp->wc_start,
- size - 1);
+ (unsigned long)chainp->wc_start,
+ (unsigned long)(chainp->wc_end - chainp->wc_start),
+ (unsigned long)(size - 1));
return 1;
}
Home |
Main Index |
Thread Index |
Old Index