patch-1.3.65 linux/drivers/net/depca.c

Next file: linux/drivers/pci/pci.c
Previous file: linux/drivers/char/vt.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.64/linux/drivers/net/depca.c linux/drivers/net/depca.c
@@ -1645,19 +1645,19 @@
     printk("\nDescriptor buffers:\nRX: ");
     for (i=0;i<lp->rxRingMask;i++){
       if (i < 3) {
-	printk("0x%8.8x  ", readl(&lp->rx_ring[i].base));
+	printk("0x%8.8x  ", (u32) readl(&lp->rx_ring[i].base));
       }
     }
-    printk("...0x%8.8x\n", readl(&lp->rx_ring[i].base));
+    printk("...0x%8.8x\n", (u32) readl(&lp->rx_ring[i].base));
     printk("TX: ");
     for (i=0;i<lp->txRingMask;i++){
       if (i < 3) {
-	printk("0x%8.8x  ", readl(&lp->tx_ring[i].base));
+	printk("0x%8.8x  ", (u32) readl(&lp->tx_ring[i].base));
       }
     }
-    printk("...0x%8.8x\n", readl(&lp->tx_ring[i].base));
+    printk("...0x%8.8x\n", (u32) readl(&lp->tx_ring[i].base));
     printk("Initialisation block at 0x%8.8lx\n",lp->sh_mem);
-    printk("\tmode: 0x%4.4x\n",readw(&p->mode));
+    printk("\tmode: 0x%4.4x\n", (u16) readw(&p->mode));
     printk("\tphysical address: ");
     for (i=0;i<ETH_ALEN-1;i++){
       printk("%2.2x:",(u_char)readb(&p->phys_addr[i]));
@@ -1668,8 +1668,8 @@
       printk("%2.2x:",(u_char)readb(&p->mcast_table[i]));
     }
     printk("%2.2x\n",(u_char)readb(&p->mcast_table[i]));
-    printk("\trx_ring at: 0x%8.8x\n",readl(&p->rx_ring));
-    printk("\ttx_ring at: 0x%8.8x\n",readl(&p->tx_ring));
+    printk("\trx_ring at: 0x%8.8x\n", (u32) readl(&p->rx_ring));
+    printk("\ttx_ring at: 0x%8.8x\n", (u32) readl(&p->tx_ring));
     printk("dma_buffs: 0x%8.8lx\n",lp->dma_buffs);
     printk("Ring size:\nRX: %d  Log2(rxRingMask): 0x%8.8x\n", 
 	   (int)lp->rxRingMask + 1, 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this