Commit 8aa06af4 authored by Kulikov Vasiliy's avatar Kulikov Vasiliy Committed by David S. Miller

tulip: formatting of pointers in printk()

Use %p instead of %08x in printk().
Signed-off-by: default avatarKulikov Vasiliy <segooon@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cea8975e
...@@ -596,10 +596,10 @@ static void tulip_tx_timeout(struct net_device *dev) ...@@ -596,10 +596,10 @@ static void tulip_tx_timeout(struct net_device *dev)
pr_cont(" %02x", buf[j]); pr_cont(" %02x", buf[j]);
pr_cont(" j=%d\n", j); pr_cont(" j=%d\n", j);
} }
printk(KERN_DEBUG " Rx ring %08x: ", (int)tp->rx_ring); printk(KERN_DEBUG " Rx ring %p: ", tp->rx_ring);
for (i = 0; i < RX_RING_SIZE; i++) for (i = 0; i < RX_RING_SIZE; i++)
pr_cont(" %08x", (unsigned int)tp->rx_ring[i].status); pr_cont(" %08x", (unsigned int)tp->rx_ring[i].status);
printk(KERN_DEBUG " Tx ring %08x: ", (int)tp->tx_ring); printk(KERN_DEBUG " Tx ring %p: ", tp->tx_ring);
for (i = 0; i < TX_RING_SIZE; i++) for (i = 0; i < TX_RING_SIZE; i++)
pr_cont(" %08x", (unsigned int)tp->tx_ring[i].status); pr_cont(" %08x", (unsigned int)tp->tx_ring[i].status);
pr_cont("\n"); pr_cont("\n");
......
...@@ -1514,12 +1514,12 @@ static int netdev_close(struct net_device *dev) ...@@ -1514,12 +1514,12 @@ static int netdev_close(struct net_device *dev)
if (debug > 2) { if (debug > 2) {
int i; int i;
printk(KERN_DEBUG" Tx ring at %08x:\n", (int)np->tx_ring); printk(KERN_DEBUG" Tx ring at %p:\n", np->tx_ring);
for (i = 0; i < TX_RING_SIZE; i++) for (i = 0; i < TX_RING_SIZE; i++)
printk(KERN_DEBUG " #%d desc. %04x %04x %08x\n", printk(KERN_DEBUG " #%d desc. %04x %04x %08x\n",
i, np->tx_ring[i].length, i, np->tx_ring[i].length,
np->tx_ring[i].status, np->tx_ring[i].buffer1); np->tx_ring[i].status, np->tx_ring[i].buffer1);
printk(KERN_DEBUG " Rx ring %08x:\n", (int)np->rx_ring); printk(KERN_DEBUG " Rx ring %p:\n", np->rx_ring);
for (i = 0; i < RX_RING_SIZE; i++) { for (i = 0; i < RX_RING_SIZE; i++) {
printk(KERN_DEBUG " #%d desc. %04x %04x %08x\n", printk(KERN_DEBUG " #%d desc. %04x %04x %08x\n",
i, np->rx_ring[i].length, i, np->rx_ring[i].length,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment