diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-05-31 12:20:17 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-05-31 12:20:17 +0000 |
commit | bfa3a3e326ae6ee4d2614ff26ffb8e6644706d88 (patch) | |
tree | ca59ffcac165c6afc924c4a06feee8b2de9371a1 /c/src/libchip/network/i82586.c | |
parent | 2010-05-31 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-bfa3a3e326ae6ee4d2614ff26ffb8e6644706d88.tar.bz2 |
2010-05-31 Ralf Corsépius <ralf.corsepius@rtems.org>
* libchip/network/i82586.c:
Use int32_t instead of int for 16bit-target compliance.
Diffstat (limited to '')
-rw-r--r-- | c/src/libchip/network/i82586.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/c/src/libchip/network/i82586.c b/c/src/libchip/network/i82586.c index 9c5360b3e1..c8e11bf7c1 100644 --- a/c/src/libchip/network/i82586.c +++ b/c/src/libchip/network/i82586.c @@ -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); } |