show some "noisy" debug messages on set bit 1 of global var
showcapimsgs only.
This commit is contained in:
parent
74e87c0aca
commit
75fde12736
|
@ -241,8 +241,10 @@ static void notify_up(u32 contr)
|
|||
struct capi_ctr *card = get_capi_ctr_by_nr(contr);
|
||||
struct capi20_appl *ap;
|
||||
u16 applid;
|
||||
|
||||
printk(KERN_DEBUG "kcapi: notify up contr %d\n", contr);
|
||||
|
||||
if (showcapimsgs & 1) {
|
||||
printk(KERN_DEBUG "kcapi: notify up contr %d\n", contr);
|
||||
}
|
||||
|
||||
for (applid = 1; applid <= CAPI_MAXAPPL; applid++) {
|
||||
ap = get_capi_appl_by_nr(applid);
|
||||
|
@ -258,7 +260,9 @@ static void notify_down(u32 contr)
|
|||
struct capi20_appl *ap;
|
||||
u16 applid;
|
||||
|
||||
printk(KERN_DEBUG "kcapi: notify down contr %d\n", contr);
|
||||
if (showcapimsgs & 1) {
|
||||
printk(KERN_DEBUG "kcapi: notify down contr %d\n", contr);
|
||||
}
|
||||
|
||||
for (applid = 1; applid <= CAPI_MAXAPPL; applid++) {
|
||||
ap = get_capi_appl_by_nr(applid);
|
||||
|
@ -565,7 +569,9 @@ u16 capi20_register(struct capi20_appl *ap)
|
|||
continue;
|
||||
register_appl(capi_cards[i], applid, &ap->rparam);
|
||||
}
|
||||
printk(KERN_DEBUG "kcapi: appl %d up\n", applid);
|
||||
if (showcapimsgs & 1) {
|
||||
printk(KERN_DEBUG "kcapi: appl %d up\n", applid);
|
||||
}
|
||||
|
||||
return CAPI_NOERROR;
|
||||
}
|
||||
|
@ -584,7 +590,9 @@ u16 capi20_release(struct capi20_appl *ap)
|
|||
release_appl(capi_cards[i], ap->applid);
|
||||
}
|
||||
capi_applications[ap->applid - 1] = NULL;
|
||||
printk(KERN_DEBUG "kcapi: appl %d down\n", ap->applid);
|
||||
if (showcapimsgs & 1) {
|
||||
printk(KERN_DEBUG "kcapi: appl %d down\n", ap->applid);
|
||||
}
|
||||
|
||||
return CAPI_NOERROR;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue