Skip to contentSkip to conversation

smc911x: Fix a few DBG macros

PATCH In review [email protected] 1 participant 1 message Sep 13, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 7/12 smc911x: Fix a few DBG macros

Some cosmetic around DBG macros...

drivers/net/smc911x.c +3 -3
Index: linux-2.6.18-rc4/drivers/net/smc911x.c
===================================================================
@@ -389,7 +388,7 @@
 	unsigned cr;
 	unsigned long flags;
 
-	DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", CARDNAME, __FUNCTION__);
+	DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __FUNCTION__);
 
 	/* Disable IRQ's */
 	SMC_SET_INT_EN(0);
@@ -408,7 +407,7 @@
 	unsigned long ioaddr = dev->base_addr;
 	unsigned int fifo_count, timeout, reg;
 
-	DBG(SMC_DEBUG_FUNC | SMC_DEBUG_RX, "%s: --> %s\n", CARDNAME, __FUNCTION__);
+	DBG(SMC_DEBUG_FUNC | SMC_DEBUG_RX, "%s: --> %s\n", dev->name, __FUNCTION__);
 	fifo_count = SMC_GET_RX_FIFO_INF() & 0xFFFF;
 	if (fifo_count <= 4) {
 		/* Manually dump the packet data */
@@ -861,7 +857,7 @@
 	unsigned long flags;
 	unsigned int reg;
 
-	DBG(SMC_DEBUG_FUNC, "%s: --> %s()\n", dev->name, __FUNCTION__);
+	DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __FUNCTION__);
 
 	spin_lock_irqsave(&lp->lock, flags);
 	reg = SMC_GET_PMT_CTRL();