[svn-commits] sruffell: linux/trunk r9936 - /linux/trunk/drivers/dahdi/dahdi-base.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Jun 2 15:01:19 CDT 2011
Author: sruffell
Date: Thu Jun 2 15:01:15 2011
New Revision: 9936
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9936
Log:
dahdi: Make tone zone registration messages debug only.
This duplicates information that is already in the
/etc/dahdi/system.conf file and should normally only be necessary for
the user when debugging problems.
Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Modified:
linux/trunk/drivers/dahdi/dahdi-base.c
Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=9936&r1=9935&r2=9936
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Thu Jun 2 15:01:15 2011
@@ -1475,9 +1475,17 @@
}
if (found) {
list_del(&found->node);
+ }
+ spin_unlock(&zone_lock);
+
+ if (found) {
+ if (debug) {
+ module_printk(KERN_INFO,
+ "Unregistering tone zone %d (%s)\n",
+ found->num, found->name);
+ }
tone_zone_put(found);
}
- spin_unlock(&zone_lock);
return 0;
}
@@ -1496,8 +1504,11 @@
}
if (!res) {
list_add_tail(&zone->node, &tone_zones);
- module_printk(KERN_INFO, "Registered tone zone %d (%s)\n",
- zone->num, zone->name);
+ if (debug) {
+ module_printk(KERN_INFO,
+ "Registered tone zone %d (%s)\n",
+ zone->num, zone->name);
+ }
}
spin_unlock(&zone_lock);
More information about the svn-commits
mailing list