]> git.hungrycats.org Git - linux/commitdiff
[SUNDANCE]: Fix casting so u64 printk does not warn on some 64-bit platforms.
authorDavid S. Miller <davem@nuts.davemloft.net>
Thu, 19 Feb 2004 14:00:29 +0000 (06:00 -0800)
committerDavid S. Miller <davem@nuts.davemloft.net>
Thu, 19 Feb 2004 14:00:29 +0000 (06:00 -0800)
drivers/net/sundance.c

index c02253e26b2173a2dd82cbbda9936f27400ec073..aa1962f02c61d8f8b0f36189aaf3f2d96ab48f09 100644 (file)
@@ -987,7 +987,7 @@ static void tx_timeout(struct net_device *dev)
                int i;
                for (i=0; i<TX_RING_SIZE; i++) {
                        printk(KERN_DEBUG "%02x %08llx %08x %08x(%02x) %08x %08x\n", i,
-                               (unsigned long long)np->tx_ring_dma + i*sizeof(*np->tx_ring),
+                               (unsigned long long)(np->tx_ring_dma + i*sizeof(*np->tx_ring)),
                                le32_to_cpu(np->tx_ring[i].next_desc),
                                le32_to_cpu(np->tx_ring[i].status),
                                (le32_to_cpu(np->tx_ring[i].status) >> 2) & 0xff,
@@ -1673,7 +1673,7 @@ static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
                case SIOCDEVPRIVATE:
                for (i=0; i<TX_RING_SIZE; i++) {
                        printk(KERN_DEBUG "%02x %08llx %08x %08x(%02x) %08x %08x\n", i,
-                               (unsigned long long)np->tx_ring_dma + i*sizeof(*np->tx_ring),   
+                               (unsigned long long)(np->tx_ring_dma + i*sizeof(*np->tx_ring)), 
                                le32_to_cpu(np->tx_ring[i].next_desc),
                                le32_to_cpu(np->tx_ring[i].status),
                                (le32_to_cpu(np->tx_ring[i].status) >> 2)