[svn-commits] sruffell: linux/trunk r5568 - /linux/trunk/drivers/dahdi/wcb4xxp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Dec 16 22:39:27 CST 2008


Author: sruffell
Date: Tue Dec 16 22:39:26 2008
New Revision: 5568

URL: http://svn.digium.com/view/dahdi?view=rev&rev=5568
Log:
wcb4xxp: Use %p to print out pointer values.

Modified:
    linux/trunk/drivers/dahdi/wcb4xxp/base.c

Modified: linux/trunk/drivers/dahdi/wcb4xxp/base.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/wcb4xxp/base.c?view=diff&rev=5568&r1=5567&r2=5568
==============================================================================
--- linux/trunk/drivers/dahdi/wcb4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wcb4xxp/base.c Tue Dec 16 22:39:26 2008
@@ -135,9 +135,8 @@
 	unsigned char ret = ioread8(b4->addr + reg);
 
 #ifdef DEBUG_LOWLEVEL_REGS
-	if (unlikely(DBG_REGS)) {
-		drv_dbg(b4->dev, "read 0x%02x from 0x%08x\n", ret, b4->addr + reg);
-	}
+	if (unlikely(DBG_REGS))
+		drv_dbg(b4->dev, "read 0x%02x from 0x%p\n", ret, b4->addr + reg);
 #endif
 	if (unlikely(pedanticpci)) {
 		udelay(3);
@@ -151,9 +150,8 @@
 	unsigned short ret = ioread16(b4->addr + reg);
 
 #ifdef DEBUG_LOWLEVEL_REGS
-	if (unlikely(DBG_REGS)) {
-		drv_dbg(b4->dev, "read 0x%04x from 0x%08x\n", ret, b4->addr + reg);
-	}
+	if (unlikely(DBG_REGS))
+		drv_dbg(b4->dev, "read 0x%04x from 0x%p\n", ret, b4->addr + reg);
 #endif
 	if (unlikely(pedanticpci)) {
 		udelay(3);
@@ -167,9 +165,8 @@
 	unsigned int ret = ioread32(b4->addr + reg);
 
 #ifdef DEBUG_LOWLEVEL_REGS
-	if (unlikely(DBG_REGS)) {
-		drv_dbg(b4->dev, "read 0x%04x from 0x%08x\n", ret, b4->addr + reg);
-	}
+	if (unlikely(DBG_REGS))
+		drv_dbg(b4->dev, "read 0x%04x from 0x%p\n", ret, b4->addr + reg);
 #endif
 	if (unlikely(pedanticpci)) {
 		udelay(3);
@@ -181,9 +178,8 @@
 static inline void __pci_out32(struct b4xxp *b4, const unsigned int reg, const unsigned int val)
 {
 #ifdef DEBUG_LOWLEVEL_REGS
-	if (unlikely(DBG_REGS)) {
-		drv_dbg(b4->dev, "writing 0x%02x to 0x%08x\n", val, b4->addr + reg);
-	}
+	if (unlikely(DBG_REGS))
+		drv_dbg(b4->dev, "writing 0x%02x to 0x%p\n", val, b4->addr + reg);
 #endif
 	iowrite32(val, b4->addr + reg);
 
@@ -196,9 +192,8 @@
 static inline void __pci_out8(struct b4xxp *b4, const unsigned int reg, const unsigned char val)
 {
 #ifdef DEBUG_LOWLEVEL_REGS
-	if (unlikely(DBG_REGS)) {
-		drv_dbg(b4->dev, "writing 0x%02x to 0x%08x\n", val, b4->addr + reg);
-	}
+	if (unlikely(DBG_REGS)) 
+		drv_dbg(b4->dev, "writing 0x%02x to 0x%p\n", val, b4->addr + reg);
 #endif
 	iowrite8(val, b4->addr + reg);
 




More information about the svn-commits mailing list