From 8a602972cf4b820a7eff7810be01299186219efe Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 29 Aug 1999 10:28:10 +0000 Subject: Fixed printf format errors (don't assume that ntohl() returns u_long; it returns u_int on i386's and in_addr_t (u_int32_t) on alphas). --- sys/dev/hfa/fore_init.c | 2 +- sys/dev/hfa/fore_load.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/hfa') diff --git a/sys/dev/hfa/fore_init.c b/sys/dev/hfa/fore_init.c index 1594f3e..d0e6192 100644 --- a/sys/dev/hfa/fore_init.c +++ b/sys/dev/hfa/fore_init.c @@ -214,7 +214,7 @@ fore_initialize_complete(fup) log(LOG_ERR, "fore initialization failed: intf=%s%d, hbeat=0x%lx\n", fup->fu_pif.pif_name, fup->fu_pif.pif_unit, - CP_READ(aap->aali_heartbeat)); + (u_long)CP_READ(aap->aali_heartbeat)); return; } diff --git a/sys/dev/hfa/fore_load.c b/sys/dev/hfa/fore_load.c index bdb42ca..5db01f9 100644 --- a/sys/dev/hfa/fore_load.c +++ b/sys/dev/hfa/fore_load.c @@ -1008,7 +1008,7 @@ fore_pci_attach(config_id, unit) } else if ( --err_count == 0 ) { log(LOG_ERR, "%s%d: unable to boot - status=0x%lx\n", FORE_DEV_NAME, unit, - CP_READ(fup->fu_mon->mon_bstat)); + (u_long)CP_READ(fup->fu_mon->mon_bstat)); goto failed; } DELAY ( BOOT_DELAY ); -- cgit v1.1