diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-10-19 16:02:12 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-10-19 16:02:12 +0000 |
commit | 49a49d7c9954fe2f53ffb29823a0c2c3123ef70b (patch) | |
tree | 7c2f7dc54103a552ea7cb96b6daf76eb94d71625 /c/src/libchip | |
parent | 2011-10-19 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-49a49d7c9954fe2f53ffb29823a0c2c3123ef70b.tar.bz2 |
2011-10-19 Ralf Corsépius <ralf.corsepius@rtems.org>
* libchip/network/smc91111.c: Use PRIxPTR to print pointers.
Diffstat (limited to 'c/src/libchip')
-rw-r--r-- | c/src/libchip/network/smc91111.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/c/src/libchip/network/smc91111.c b/c/src/libchip/network/smc91111.c index d84ab56f14..ac380ebcce 100644 --- a/c/src/libchip/network/smc91111.c +++ b/c/src/libchip/network/smc91111.c @@ -445,8 +445,8 @@ static int readpacket(struct lan91cxx_priv_data *cpd) struct mbuf *n = m; db_printf("mbuf-chain:"); while (n) { - db_printf("[%x:%x]", - (unsigned int)(n-> m_data), + db_printf("[%" PRIxPTR ":%x]", + n->m_data, (unsigned int)(n->m_len)); n = n->m_next; } @@ -1273,8 +1273,8 @@ static int smc_probe(struct lan91cxx_priv_data *cpd) if (!chip_ids[(revision_register >> 4) & 0xF]) { /* I don't recognize this chip, so... */ db_printf - ("smc_probe: IO %x: Unrecognized revision register:" - " %x, Contact author. \n", (unsigned int)cpd->base, + ("smc_probe: IO %" PRIxPTR ": Unrecognized revision register:" + " %x, Contact author. \n", cpd->base, revision_register); return -ENODEV; |