print fsmTimer debug only when debugflag set

This commit is contained in:
Chrisian Richter 2007-03-21 13:26:56 +00:00
parent 4b08981a7e
commit 8afd39d035
1 changed files with 4 additions and 2 deletions

View File

@ -127,8 +127,10 @@ mISDN_FsmAddTimer(struct FsmTimer *ft,
#endif #endif
if (timer_pending(&ft->tl)) { if (timer_pending(&ft->tl)) {
printk(KERN_WARNING "mISDN_FsmAddTimer: timer already active!\n"); if (ft->fi->debug) {
ft->fi->printdebug(ft->fi, "mISDN_FsmAddTimer already active!"); printk(KERN_WARNING "mISDN_FsmAddTimer: timer already active!\n");
ft->fi->printdebug(ft->fi, "mISDN_FsmAddTimer already active!");
}
return -1; return -1;
} }
init_timer(&ft->tl); init_timer(&ft->tl);