summaryrefslogtreecommitdiffstats
path: root/sys/dev/hfa
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-08-29 10:28:10 +0000
committerbde <bde@FreeBSD.org>1999-08-29 10:28:10 +0000
commit8a602972cf4b820a7eff7810be01299186219efe (patch)
tree7a42b302d042483e83fccc183c6698cbfa32f31d /sys/dev/hfa
parent615716acb7c3853d0331948df3559f9a8af9f078 (diff)
downloadFreeBSD-src-8a602972cf4b820a7eff7810be01299186219efe.zip
FreeBSD-src-8a602972cf4b820a7eff7810be01299186219efe.tar.gz
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).
Diffstat (limited to 'sys/dev/hfa')
-rw-r--r--sys/dev/hfa/fore_init.c2
-rw-r--r--sys/dev/hfa/fore_load.c2
2 files changed, 2 insertions, 2 deletions
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 );
OpenPOWER on IntegriCloud