[svn-commits] seanbright: linux/trunk r5270 - /linux/trunk/drivers/dahdi/dahdi-base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Nov 8 18:33:16 CST 2008


Author: seanbright
Date: Sat Nov  8 18:33:16 2008
New Revision: 5270

URL: http://svn.digium.com/view/dahdi?view=rev&rev=5270
Log:
We only use print_debug_writebuf when CONFIG_DAHDI_NET or CONFIG_DAHDI_PPP are defined, so only define it in those cases as well.

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

Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=5270&r1=5269&r2=5270
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Sat Nov  8 18:33:16 2008
@@ -1495,6 +1495,18 @@
 }
 
 #if defined(CONFIG_DAHDI_NET) || defined(CONFIG_DAHDI_PPP)
+static inline void print_debug_writebuf(struct dahdi_chan* ss, struct sk_buff *skb, int oldbuf)
+{
+#ifdef CONFIG_DAHDI_DEBUG
+	int x;
+
+	module_printk(KERN_NOTICE, "Buffered %d bytes to go out in buffer %d\n", ss->writen[oldbuf], oldbuf);
+	module_printk(KERN_DEBUG "");
+	for (x=0;x<ss->writen[oldbuf];x++)
+		printk("%02x ", ss->writebuf[oldbuf][x]);
+	printk("\n");
+#endif
+}
 #endif
 
 #ifdef CONFIG_DAHDI_NET
@@ -1635,20 +1647,6 @@
 static struct dahdi_hdlc *dahdi_hdlc_alloc(void)
 {
 	return kzalloc(sizeof(struct dahdi_hdlc), GFP_KERNEL);
-}
-
-static inline void print_debug_writebuf(struct dahdi_chan* ss, struct sk_buff *skb,
-		int oldbuf)
-{
-#ifdef CONFIG_DAHDI_DEBUG
-	int x;
-
-	module_printk(KERN_NOTICE, "Buffered %d bytes to go out in buffer %d\n", ss->writen[oldbuf], oldbuf);
-	module_printk(KERN_DEBUG "");
-	for (x=0;x<ss->writen[oldbuf];x++)
-		printk("%02x ", ss->writebuf[oldbuf][x]);
-	printk("\n");
-#endif
 }
 
 #ifdef NEW_HDLC_INTERFACE




More information about the svn-commits mailing list