tulip: formatting of pointers in printk()
Subsystems (3)
PATCH 5/11 tulip: formatting of pointers in printk()
Use %p instead of %08x in printk().
Signed-off-by Kulikov Vasiliy <[email protected]>
--- drivers/net/tulip/tulip_core.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/tulip/tulip_core.c +2 -2
@@ -596,10 +596,10 @@ static void tulip_tx_timeout(struct net_device *dev)pr_cont (" %02x" , buf[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++)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++)pr_cont (" %08x" , (unsigned int )tp->tx_ring[i].status);pr_cont ("\n" );
Signature · 1 line
1.7.0.4
David Miller
maintainerFrom: Kulikov Vasiliy <[email protected]>
Date: Wed, 14 Jul 2010 22:02:47 +0400
Quoted 3 lines
Use %p instead of %08x in
printk().Signed-off-by Kulikov Vasiliy <[email protected]>
Since patch #5 and #6 are doing the same change to different files in the same driver, I combined them into one commit.
There is no need to split things up with so much granularity. If it's all in the same driver, doing the same transformation, keep it all in one patch.
Thanks.
Quoted 3 lines · David Miller
Since patch #5 and #6 are doing the same change to different files in the same driver, I combined them into one commit.
Thanks, Dave!
--Kyle