diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-07-14 04:02:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-14 18:06:10 -0400 |
commit | 8aa06af4d09b7ca1ca6126b1b8ddec4a9e67fb3a (patch) | |
tree | 1d521ed6f0eb59a6a52ddb9bd9398fcaa7260963 /drivers/net/tulip | |
parent | cea8975e84409f01fc4cf92775d2d0028ccc1665 (diff) |
tulip: formatting of pointers in printk()
Use %p instead of %08x in printk().
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tulip')
-rw-r--r-- | drivers/net/tulip/tulip_core.c | 4 | ||||
-rw-r--r-- | drivers/net/tulip/winbond-840.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/tulip/tulip_core.c b/drivers/net/tulip/tulip_core.c index 03e96b928c04..14e5312e906e 100644 --- a/drivers/net/tulip/tulip_core.c +++ b/drivers/net/tulip/tulip_core.c | |||
@@ -596,10 +596,10 @@ static void tulip_tx_timeout(struct net_device *dev) | |||
596 | pr_cont(" %02x", buf[j]); | 596 | pr_cont(" %02x", buf[j]); |
597 | pr_cont(" j=%d\n", j); | 597 | pr_cont(" j=%d\n", j); |
598 | } | 598 | } |
599 | printk(KERN_DEBUG " Rx ring %08x: ", (int)tp->rx_ring); | 599 | printk(KERN_DEBUG " Rx ring %p: ", tp->rx_ring); |
600 | for (i = 0; i < RX_RING_SIZE; i++) | 600 | for (i = 0; i < RX_RING_SIZE; i++) |
601 | pr_cont(" %08x", (unsigned int)tp->rx_ring[i].status); | 601 | pr_cont(" %08x", (unsigned int)tp->rx_ring[i].status); |
602 | printk(KERN_DEBUG " Tx ring %08x: ", (int)tp->tx_ring); | 602 | printk(KERN_DEBUG " Tx ring %p: ", tp->tx_ring); |
603 | for (i = 0; i < TX_RING_SIZE; i++) | 603 | for (i = 0; i < TX_RING_SIZE; i++) |
604 | pr_cont(" %08x", (unsigned int)tp->tx_ring[i].status); | 604 | pr_cont(" %08x", (unsigned int)tp->tx_ring[i].status); |
605 | pr_cont("\n"); | 605 | pr_cont("\n"); |
diff --git a/drivers/net/tulip/winbond-840.c b/drivers/net/tulip/winbond-840.c index 608b279b921b..66d41cf8da29 100644 --- a/drivers/net/tulip/winbond-840.c +++ b/drivers/net/tulip/winbond-840.c | |||
@@ -1514,12 +1514,12 @@ static int netdev_close(struct net_device *dev) | |||
1514 | if (debug > 2) { | 1514 | if (debug > 2) { |
1515 | int i; | 1515 | int i; |
1516 | 1516 | ||
1517 | printk(KERN_DEBUG" Tx ring at %08x:\n", (int)np->tx_ring); | 1517 | printk(KERN_DEBUG" Tx ring at %p:\n", np->tx_ring); |
1518 | for (i = 0; i < TX_RING_SIZE; i++) | 1518 | for (i = 0; i < TX_RING_SIZE; i++) |
1519 | printk(KERN_DEBUG " #%d desc. %04x %04x %08x\n", | 1519 | printk(KERN_DEBUG " #%d desc. %04x %04x %08x\n", |
1520 | i, np->tx_ring[i].length, | 1520 | i, np->tx_ring[i].length, |
1521 | np->tx_ring[i].status, np->tx_ring[i].buffer1); | 1521 | np->tx_ring[i].status, np->tx_ring[i].buffer1); |
1522 | printk(KERN_DEBUG " Rx ring %08x:\n", (int)np->rx_ring); | 1522 | printk(KERN_DEBUG " Rx ring %p:\n", np->rx_ring); |
1523 | for (i = 0; i < RX_RING_SIZE; i++) { | 1523 | for (i = 0; i < RX_RING_SIZE; i++) { |
1524 | printk(KERN_DEBUG " #%d desc. %04x %04x %08x\n", | 1524 | printk(KERN_DEBUG " #%d desc. %04x %04x %08x\n", |
1525 | i, np->rx_ring[i].length, | 1525 | i, np->rx_ring[i].length, |