summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2004-11-10 13:16:12 +0000
committernyan <nyan@FreeBSD.org>2004-11-10 13:16:12 +0000
commitcc99cb5f1a2b617bc5ba7ecd8f8aca6229d1d6ce (patch)
tree31687b0d897b9f755a91f3680af17cf0bd3f286a /sys/dev
parent1a58c6976757db50a81e898b74a9fd606495bf76 (diff)
downloadFreeBSD-src-cc99cb5f1a2b617bc5ba7ecd8f8aca6229d1d6ce.zip
FreeBSD-src-cc99cb5f1a2b617bc5ba7ecd8f8aca6229d1d6ce.tar.gz
Fix build error with ED_DEBUG.
PR: kern/72753
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ed/if_ed.c4
-rw-r--r--sys/dev/ed/if_ed_cbus.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index d0df875..3c04683 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -370,8 +370,8 @@ ed_probe_WD80x3_generic(dev, flags, intr_vals)
if (error)
return (error);
-#if ED_DEBUG
- printf("type = %x type_str=%s isa16bit=%d memsize=%d id_msize=%d\n",
+#ifdef ED_DEBUG
+ printf("type = %x type_str=%s isa16bit=%d memsize=%d id_msize=%lu\n",
sc->type, sc->type_str, isa16bit, memsize, conf_msize);
for (i = 0; i < 8; i++)
printf("%x -> %x\n", i, ed_asic_inb(sc, i));
diff --git a/sys/dev/ed/if_ed_cbus.c b/sys/dev/ed/if_ed_cbus.c
index 40f114b..0b9a122 100644
--- a/sys/dev/ed/if_ed_cbus.c
+++ b/sys/dev/ed/if_ed_cbus.c
@@ -1682,7 +1682,7 @@ ed_pio_testmem(sc, page_offset, isa16bit, flags)
ed_nic_outb(sc, ED_P0_PSTART, page_offset / ED_PAGE_SIZE);
ed_nic_outb(sc, ED_P0_PSTOP, (page_offset + memsize) / ED_PAGE_SIZE);
#ifdef ED_DEBUG
- printf("ed?: ed_pio_testmem: page start=%x, end=%x",
+ printf("ed?: ed_pio_testmem: page start=%x, end=%lx",
page_offset, page_offset + memsize);
#endif
OpenPOWER on IntegriCloud