summaryrefslogtreecommitdiff
path: root/drivers/dahdi/dahdi_dynamic_loc.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@digium.com>2008-08-03 16:47:46 +0000
committerRussell Bryant <russell@digium.com>2008-08-03 16:47:46 +0000
commitad59317fbfddd1d6624e8128f556d85e7e17d935 (patch)
treed76f5176789981ba3f8ee905a4ba8ae926ff6b95 /drivers/dahdi/dahdi_dynamic_loc.c
parent53bb164eda38b8591a88146fbf81652041eeb9b1 (diff)
Change all instances of printk in DAHDI to include a priority
(closes issue #11504) Reported by: tzafrir Patches: 20080717__issue11504_dahdi_printk_without_priority.diff uploaded by bbryant (license 36) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4685 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/dahdi_dynamic_loc.c')
-rw-r--r--drivers/dahdi/dahdi_dynamic_loc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/dahdi/dahdi_dynamic_loc.c b/drivers/dahdi/dahdi_dynamic_loc.c
index 4b74f66..b37d6cf 100644
--- a/drivers/dahdi/dahdi_dynamic_loc.c
+++ b/drivers/dahdi/dahdi_dynamic_loc.c
@@ -152,7 +152,7 @@ static int digit2int(char d)
}
spin_unlock_irqrestore(&zlock, flags);
if (cur == z) {
- printk("TDMoL: Removed interface for %s, key %d id %d\n", z->span->name, z->key, z->id);
+ printk(KERN_INFO "TDMoL: Removed interface for %s, key %d id %d\n", z->span->name, z->key, z->id);
module_put(THIS_MODULE);
kfree(z);
}
@@ -194,12 +194,12 @@ static int digit2int(char d)
for (l = zdevs; l; l = l->next)
if (l->key == z->key) {
if (l->id == z->id) {
- printk ("TDMoL: Duplicate id (%d) for key %d\n", z->id, z->key);
+ printk(KERN_DEBUG "TDMoL: Duplicate id (%d) for key %d\n", z->id, z->key);
goto CLEAR_AND_DEL_FROM_PEERS;
}
if (monitor == -1) {
if (l->peer) {
- printk ("TDMoL: Span with key %d and id %d already has a R/W peer\n", z->key, z->id);
+ printk(KERN_DEBUG "TDMoL: Span with key %d and id %d already has a R/W peer\n", z->key, z->id);
goto CLEAR_AND_DEL_FROM_PEERS;
} else {
l->peer = z;
@@ -208,7 +208,7 @@ static int digit2int(char d)
}
if (monitor == l->id) {
if (l->monitor_rx_peer) {
- printk ("TDMoL: Span with key %d and id %d already has a monitoring peer\n", z->key, z->id);
+ printk(KERN_DEBUG "TDMoL: Span with key %d and id %d already has a monitoring peer\n", z->key, z->id);
goto CLEAR_AND_DEL_FROM_PEERS;
} else {
l->monitor_rx_peer = z;
@@ -219,9 +219,9 @@ static int digit2int(char d)
zdevs = z;
spin_unlock_irqrestore(&zlock, flags);
if(!try_module_get(THIS_MODULE))
- printk("TDMoL: Unable to increment module use count\n");
+ printk(KERN_DEBUG "TDMoL: Unable to increment module use count\n");
- printk("TDMoL: Added new interface for %s, key %d id %d\n", span->name, z->key, z->id);
+ printk(KERN_INFO "TDMoL: Added new interface for %s, key %d id %d\n", span->name, z->key, z->id);
}
return z;
@@ -236,7 +236,7 @@ CLEAR_AND_DEL_FROM_PEERS:
return NULL;
INVALID_ADDRESS:
- printk ("TDMoL: Invalid address %s\n", address);
+ printk (KERN_NOTICE "TDMoL: Invalid address %s\n", address);
return NULL;
}