aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-02-11 15:12:10 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-02-11 15:12:10 +0000
commit8916c02b47c5eb94076e8240c36f70ecc71d40ac (patch)
tree6f47ad53622cfdbcda5a33768450d60278e5a947 /target/linux/ramips/files
parentaac3ad4c0eb2d3089f4127c5d923420324a5212b (diff)
downloadupstream-8916c02b47c5eb94076e8240c36f70ecc71d40ac.tar.gz
upstream-8916c02b47c5eb94076e8240c36f70ecc71d40ac.tar.bz2
upstream-8916c02b47c5eb94076e8240c36f70ecc71d40ac.zip
ramips: raeth: make debugging messages configurable
SVN-Revision: 30450
Diffstat (limited to 'target/linux/ramips/files')
-rw-r--r--target/linux/ramips/files/drivers/net/ramips.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/target/linux/ramips/files/drivers/net/ramips.c b/target/linux/ramips/files/drivers/net/ramips.c
index 1ec03b189d..5d9d9f3b48 100644
--- a/target/linux/ramips/files/drivers/net/ramips.c
+++ b/target/linux/ramips/files/drivers/net/ramips.c
@@ -40,6 +40,12 @@ static inline void rt305x_esw_exit(void) { }
#define phys_to_bus(a) (a & 0x1FFFFFFF)
+#ifdef CONFIG_RAMIPS_ETH_DEBUG
+#define RADEBUG(fmt, args...) printk(KERN_DEBUG fmt, ## args)
+#else
+#define RADEBUG(fmt, args...) do {} while (0)
+#endif
+
static struct net_device * ramips_dev;
static void __iomem *ramips_fe_base = 0;
@@ -443,7 +449,7 @@ ramips_eth_stop(struct net_device *dev)
tasklet_kill(&priv->tx_housekeeping_tasklet);
tasklet_kill(&priv->rx_tasklet);
ramips_cleanup_dma(priv);
- printk(KERN_DEBUG "ramips_eth: stopped\n");
+ RADEBUG("ramips_eth: stopped\n");
return 0;
}
@@ -532,7 +538,7 @@ ramips_eth_plat_probe(struct platform_device *plat)
goto err_free_dev;
}
- printk(KERN_DEBUG "ramips_eth: loaded\n");
+ RADEBUG("ramips_eth: loaded\n");
return 0;
err_free_dev:
@@ -547,7 +553,7 @@ ramips_eth_plat_remove(struct platform_device *plat)
{
unregister_netdev(ramips_dev);
free_netdev(ramips_dev);
- printk(KERN_DEBUG "ramips_eth: unloaded\n");
+ RADEBUG("ramips_eth: unloaded\n");
return 0;
}