mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 14:18:20 +00:00
2010-05-31 Ralf Corsépius <ralf.corsepius@rtems.org>
* libchip/network/i82586.c: Use int32_t instead of int for 16bit-target compliance.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
2010-05-31 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* libchip/network/i82586.c:
|
||||
Use int32_t instead of int for 16bit-target compliance.
|
||||
* libchip/network/open_eth.c:
|
||||
Misc. changes to make code 16bit-target compliant.
|
||||
|
||||
|
||||
@@ -1508,7 +1508,7 @@ setup_simple_command(struct ie_softc *sc, int cmd, int cmdbuf)
|
||||
static void
|
||||
ie_run_tdr(struct ie_softc *sc, int cmd)
|
||||
{
|
||||
int result;
|
||||
uint32_t result;
|
||||
|
||||
setup_simple_command(sc, IE_CMD_TDR, cmd);
|
||||
sc->ie_bus_write16(sc, IE_CMD_TDR_TIME(cmd), 0);
|
||||
@@ -1530,13 +1530,13 @@ ie_run_tdr(struct ie_softc *sc, int cmd)
|
||||
else if (result & IE_TDR_XCVR)
|
||||
printf("%s: transceiver problem\n", sc->arpcom.ac_if.if_name);
|
||||
else if (result & IE_TDR_OPEN)
|
||||
printf("%s: TDR detected incorrect termination %d clocks away\n",
|
||||
printf("%s: TDR detected incorrect termination %" PRId32 " clocks away\n",
|
||||
sc->arpcom.ac_if.if_name, result & IE_TDR_TIME);
|
||||
else if (result & IE_TDR_SHORT)
|
||||
printf("%s: TDR detected a short circuit %d clocks away\n",
|
||||
printf("%s: TDR detected a short circuit %" PRId32 " clocks away\n",
|
||||
sc->arpcom.ac_if.if_name, result & IE_TDR_TIME);
|
||||
else
|
||||
printf("%s: TDR returned unknown status 0x%x\n",
|
||||
printf("%s: TDR returned unknown status 0x%" PRIx32 "\n",
|
||||
sc->arpcom.ac_if.if_name, result);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user