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).
This commit is contained in:
parent
684f9417a2
commit
1961e4302a
@ -214,7 +214,7 @@ fore_initialize_complete(fup)
|
|||||||
log(LOG_ERR,
|
log(LOG_ERR,
|
||||||
"fore initialization failed: intf=%s%d, hbeat=0x%lx\n",
|
"fore initialization failed: intf=%s%d, hbeat=0x%lx\n",
|
||||||
fup->fu_pif.pif_name, fup->fu_pif.pif_unit,
|
fup->fu_pif.pif_name, fup->fu_pif.pif_unit,
|
||||||
CP_READ(aap->aali_heartbeat));
|
(u_long)CP_READ(aap->aali_heartbeat));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1008,7 +1008,7 @@ fore_pci_attach(config_id, unit)
|
|||||||
} else if ( --err_count == 0 ) {
|
} else if ( --err_count == 0 ) {
|
||||||
log(LOG_ERR, "%s%d: unable to boot - status=0x%lx\n",
|
log(LOG_ERR, "%s%d: unable to boot - status=0x%lx\n",
|
||||||
FORE_DEV_NAME, unit,
|
FORE_DEV_NAME, unit,
|
||||||
CP_READ(fup->fu_mon->mon_bstat));
|
(u_long)CP_READ(fup->fu_mon->mon_bstat));
|
||||||
goto failed;
|
goto failed;
|
||||||
}
|
}
|
||||||
DELAY ( BOOT_DELAY );
|
DELAY ( BOOT_DELAY );
|
||||||
|
@ -441,7 +441,7 @@ spans_addr_print(p)
|
|||||||
/*
|
/*
|
||||||
* Print and return the string
|
* Print and return the string
|
||||||
*/
|
*/
|
||||||
sprintf(strbuff, "%lx.%lx", ntohl(u1.w), ntohl(u2.w));
|
sprintf(strbuff, "%lx.%lx", (u_long)ntohl(u1.w), (u_long)ntohl(u2.w));
|
||||||
return(strbuff);
|
return(strbuff);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user