diff options
author | imp <imp@FreeBSD.org> | 2004-06-28 16:30:49 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2004-06-28 16:30:49 +0000 |
commit | 349ab2cd0a3c234acd727a5e1a7ef307309a3970 (patch) | |
tree | 69786272aba858efb81f476e3af451bec6217292 /sys/dev/ex | |
parent | 9234a42a692465e706d8c0e2eceb7eaa6ae77e41 (diff) | |
download | FreeBSD-src-349ab2cd0a3c234acd727a5e1a7ef307309a3970.zip FreeBSD-src-349ab2cd0a3c234acd727a5e1a7ef307309a3970.tar.gz |
casting for printf happiness
Diffstat (limited to 'sys/dev/ex')
-rw-r--r-- | sys/dev/ex/if_ex_isa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ex/if_ex_isa.c b/sys/dev/ex/if_ex_isa.c index a87b6a2..cfcac1a 100644 --- a/sys/dev/ex/if_ex_isa.c +++ b/sys/dev/ex/if_ex_isa.c @@ -148,7 +148,7 @@ ex_isa_identify(driver_t *driver, device_t parent) } if (bootverbose) - printf("ex: Found card at 0x%03x!\n", ioport); + printf("ex: Found card at 0x%03lx!\n", (unsigned long)ioport); /* Board in PnP mode */ if (ex_eeprom_read(&sc, EE_W0) & EE_W0_PNP) { @@ -156,7 +156,7 @@ ex_isa_identify(driver_t *driver, device_t parent) CSR_WRITE_1(&sc, CMD_REG, Reset_CMD); DELAY(500); if (bootverbose) - printf("ex: card at 0x%03x in PnP mode!\n", ioport); + printf("ex: card at 0x%03lx in PnP mode!\n", (unsigned long)ioport); bus_release_resource(parent, SYS_RES_IOPORT, rid, res); continue; } @@ -221,12 +221,12 @@ ex_isa_probe(device_t dev) iobase = bus_get_resource_start(dev, SYS_RES_IOPORT, 0); if (!ex_look_for_card(sc)) { if (bootverbose) - printf("ex: no card found at 0x%3x.\n", iobase); + printf("ex: no card found at 0x%03lx.\n", (unsigned long)iobase); error = ENXIO; goto bad; } if (bootverbose) - printf("ex: ex_isa_probe() found card at 0x%03x\n", iobase); + printf("ex: ex_isa_probe() found card at 0x%03lx\n", (unsigned long)iobase); /* * Reset the card. |