[PATCH 4/6] net: netx: Fix signed/unsigned arguments for printf
Alexander Shiyan
shc_work at mail.ru
Fri Nov 8 13:12:57 EST 2013
"%d" in format string requires a signed integer.
Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
---
drivers/net/netx_eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/netx_eth.c b/drivers/net/netx_eth.c
index 9ca9bce..ee3ed23 100644
--- a/drivers/net/netx_eth.c
+++ b/drivers/net/netx_eth.c
@@ -86,7 +86,7 @@ static int netx_eth_send (struct eth_device *edev,
#endif
val = PFIFO_REG( PFIFO_BASE(CON_FIFO_PORT_LO(xcno)) );
if((val & FIFO_PTR_ERROR_MASK) & 0x8)
- printf("error sending frame: %d\n",val);
+ printf("error sending frame: %u\n", val);
return 0;
}
--
1.8.1.5
More information about the barebox
mailing list