printk and dma_addr_t, part 2
Subsystems (3)
PATCH 1/1 printk and dma_addr_t, part 2
These are the files which require the DMA_ADDR_T_FMT treatment.
drivers/atm/idt77252.cdrivers/message/fusion/mptbase.cdrivers/net/tokenring/tms380tr.cdrivers/net/pcnet32.cdrivers/net/yellowfin.cdrivers/net/starfire.c
drivers/atm/idt77252.c +3 -2
@@ -665,8 +665,9 @@ alloc_scq(struct idt77252_dev *card, intskb_queue_head_init (&scq->transmit);skb_queue_head_init (&scq->pending); -TXPRINTK ("idt77252: SCQ: base 0x%p, next 0x%p, last 0x%p, paddr %08x\n" , - scq->base, scq->next, scq->last, scq->paddr); +TXPRINTK ("idt77252: SCQ: base 0x%p, next 0x%p, last 0x%p, paddr " +DMA_ADDR_T_FMT "\n" , + scq->base, scq->next, scq->last, scq->paddr);return scq; }
drivers/message/fusion/mptbase.c +2 -2
@@ -3217,7 +3217,7 @@ mpt_print_ioc_facts(MPT_ADAPTER *ioc, ch y +=sprintf (buffer+len+y," MaxChainDepth = 0x%02x frames\n" , ioc->facts.MaxChainDepth); y +=sprintf (buffer+len+y," MinBlockSize = 0x%02x bytes\n" ,4 *ioc->facts.BlockSize); - y +=sprintf (buffer+len+y," RequestFrames @ 0x%p (Dma @ 0x%08x)\n" , + y +=sprintf (buffer+len+y," RequestFrames @ 0x%p (Dma @ 0x" DMA_ADDR_T_FMT ")\n" , ioc->req_alloc, ioc->req_alloc_dma);/* * Rounding UP to nearest 4-kB boundary here...
@@ -3230,7 +3230,7 @@ mpt_print_ioc_facts(MPT_ADAPTER *ioc, ch4 *ioc->facts.RequestFrameSize, ioc->facts.GlobalCredits); - y +=sprintf (buffer+len+y," ReplyFrames @ 0x%p (Dma @ 0x%08x)\n" , + y +=sprintf (buffer+len+y," ReplyFrames @ 0x%p (Dma @ 0x" DMA_ADDR_T_FMT ")\n" , ioc->reply_alloc, ioc->reply_alloc_dma); sz = (ioc->reply_sz * ioc->reply_depth) +128 ; y += sprintf(buffer+len+y, " {CurRepSz=%d} x {CurRepDepth=%d} = %d bytes ^= 0x%x\n",
drivers/net/tokenring/tms380tr.c +3 -1
@@ -1446,7 +1446,9 @@ static int tms380tr_init_adapter(structif (tms380tr_debug >3 ) {printk (KERN_INFO "%s: buffer (real): %lx\n" , dev->name, (long ) &tp->scb); -printk (KERN_INFO "%s: buffer (virt): %lx\n" , dev->name, (long ) ((char *)&tp->scb - (char *)tp) + tp->dmabuffer); +printk (KERN_INFO "%s: buffer (virt): " DMA_ADDR_T_FMT "\n" , + dev->name, + (long ) ((char *)&tp->scb - (char *)tp) + tp->dmabuffer);printk (KERN_INFO "%s: buffer (DMA) : %lx\n" , dev->name, (long ) tp->dmabuffer);printk (KERN_INFO "%s: buffer (tp) : %lx\n" , dev->name, (long ) tp); }
drivers/net/pcnet32.c +2 -1
@@ -711,7 +711,8 @@ pcnet32_probe1(unsigned long ioaddr, unsmemset (lp,0 ,sizeof (*lp)); lp->dma_addr = lp_dma_addr; lp->pci_dev = pdev; -printk ("\n" KERN_INFO "pcnet32: pcnet32_private lp=%p lp_dma_addr=%#08x" , lp, lp_dma_addr); +printk ("\n" KERN_INFO "pcnet32: pcnet32_private lp=%p lp_dma_addr=" DMA_ADDR_T_FMT , + lp, lp_dma_addr);spin_lock_init (&lp->lock);
drivers/net/yellowfin.c +4 -2
@@ -1273,7 +1273,8 @@ static int yellowfin_close(struct net_de#if defined(__i386__)if (yellowfin_debug >2 ) { -printk ("\n" KERN_DEBUG " Tx ring at %8.8x:\n" , yp->tx_ring_dma); +printk ("\n" KERN_DEBUG " Tx ring at " DMA_ADDR_T_FMT ":\n" , + yp->tx_ring_dma);for (i =0 ; i <TX_RING_SIZE *2 ; i++) printk(" %c #%d desc. %8.8x %8.8x %8.8x %8.8x.\n", inl(ioaddr + TxPtr) == (long)&yp->tx_ring[i] ? '>' : ' ',
@@ -1285,7 +1286,8 @@ static int yellowfin_close(struct net_de i, yp->tx_status[i].tx_cnt, yp->tx_status[i].tx_errs, yp->tx_status[i].total_tx_cnt, yp->tx_status[i].paused); -printk ("\n" KERN_DEBUG " Rx ring %8.8x:\n" , yp->rx_ring_dma); +printk ("\n" KERN_DEBUG " Rx ring " DMA_ADDR_T_FMT ":\n" , + yp->rx_ring_dma);for (i =0 ; i <RX_RING_SIZE ; i++) { printk(KERN_DEBUG " %c #%d desc. %8.8x %8.8x %8.8x\n", inl(ioaddr + RxPtr) == (long)&yp->rx_ring[i] ? '>' : ' ',
drivers/net/starfire.c +4 -3
@@ -1911,19 +1911,20 @@ static int netdev_close(struct net_devic#ifdef __i386__if (debug >2 ) { -printk ("\n" KERN_DEBUG " Tx ring at %8.8x:\n" , +printk ("\n" KERN_DEBUG " Tx ring at " DMA_ADDR_T_FMT ":\n" , np->tx_ring_dma);for (i =0 ; i <8 /* TX_RING_SIZE is huge! */ ; i++)printk (KERN_DEBUG " #%d desc. %8.8x %8.8x -> %8.8x.\n" , i,le32_to_cpu (np->tx_ring[i].status),le32_to_cpu (np->tx_ring[i].first_addr),le32_to_cpu (np->tx_done_q[i].status)); -printk (KERN_DEBUG " Rx ring at %8.8x -> %p:\n" , +printk (KERN_DEBUG " Rx ring at " DMA_ADDR_T_FMT " -> %p:\n" , np->rx_ring_dma, np->rx_done_q);if (np->rx_done_q)for (i =0 ; i <8 /* RX_RING_SIZE */ ; i++) {printk (KERN_DEBUG " #%d desc. %8.8x -> %8.8x\n" , - i,le32_to_cpu (np->rx_ring[i].rxaddr),le32_to_cpu (np->rx_done_q[i].status)); + i,le32_to_cpu (np->rx_ring[i].rxaddr), +le32_to_cpu (np->rx_done_q[i].status)); } }#endif /* __i386__ debugging only */
-