diff options
-rw-r--r-- | c/src/ChangeLog | 2 | ||||
-rw-r--r-- | c/src/libchip/network/i82586.c | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/c/src/ChangeLog b/c/src/ChangeLog index 474457bb6e..c2af89466e 100644 --- a/c/src/ChangeLog +++ b/c/src/ChangeLog @@ -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. 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); } |