print fsmTimer debug only when debugflag set
This commit is contained in:
parent
4b08981a7e
commit
8afd39d035
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue