diff options
author | Thierry Reding <thierry.reding@gmail.com> | 2013-09-20 16:03:41 +0200 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2013-11-22 16:50:53 -0600 |
commit | 7a36b9c1acb43c6be82b05c21cba1d0f14712d8c (patch) | |
tree | 2864d78d264419af5e73a265f499762b66b7d2db | |
parent | 26b807c4f8d95f7e1a9b16b5d0caebc6606d3dc6 (diff) | |
download | u-boot-imx-7a36b9c1acb43c6be82b05c21cba1d0f14712d8c.zip u-boot-imx-7a36b9c1acb43c6be82b05c21cba1d0f14712d8c.tar.gz u-boot-imx-7a36b9c1acb43c6be82b05c21cba1d0f14712d8c.tar.bz2 |
net: rtl8169: Fix format string
currticks() is defined as get_timer(0), which returns an unsigned long,
so use %lu instead of %d to print the result.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Patch: 276473
-rw-r--r-- | drivers/net/rtl8169.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c index 13fa9c0..9dc10a5 100644 --- a/drivers/net/rtl8169.c +++ b/drivers/net/rtl8169.c @@ -501,8 +501,8 @@ static int rtl_send(struct eth_device *dev, void *packet, int length) if (currticks() >= to) { #ifdef DEBUG_RTL8169_TX - puts ("tx timeout/error\n"); - printf ("%s elapsed time : %d\n", __FUNCTION__, currticks()-stime); + puts("tx timeout/error\n"); + printf("%s elapsed time : %lu\n", __func__, currticks()-stime); #endif ret = 0; } else { @@ -604,7 +604,7 @@ static void rtl8169_hw_start(struct eth_device *dev) RTL_W16(MultiIntr, RTL_R16(MultiIntr) & 0xF000); #ifdef DEBUG_RTL8169 - printf ("%s elapsed time : %d\n", __FUNCTION__, currticks()-stime); + printf("%s elapsed time : %lu\n", __func__, currticks()-stime); #endif } @@ -642,7 +642,7 @@ static void rtl8169_init_ring(struct eth_device *dev) } #ifdef DEBUG_RTL8169 - printf ("%s elapsed time : %d\n", __FUNCTION__, currticks()-stime); + printf("%s elapsed time : %lu\n", __func__, currticks()-stime); #endif } @@ -683,7 +683,7 @@ static int rtl_reset(struct eth_device *dev, bd_t *bis) txb[5] = dev->enetaddr[5]; #ifdef DEBUG_RTL8169 - printf ("%s elapsed time : %d\n", __FUNCTION__, currticks()-stime); + printf("%s elapsed time : %lu\n", __func__, currticks()-stime); #endif return 0; } |