Index: wctdm.c =================================================================== --- wctdm.c (revision 1497) +++ wctdm.c (working copy) @@ -960,9 +960,10 @@ if (wc->mod[card].fxo.polaritydebounce < 1) { if (wc->mod[card].fxo.lastpol != wc->mod[card].fxo.polarity) { if (debug) - printk("%lu Polarity reversed (%d -> %d)\n", jiffies, + printk("%lu Polarity reversed (%d -> %d) on %d/%d\n", jiffies, wc->mod[card].fxo.polarity, - wc->mod[card].fxo.lastpol); + wc->mod[card].fxo.lastpol, + wc->span.spanno, card + 1); if (wc->mod[card].fxo.polarity) zt_qevent_lock(&wc->chans[card], ZT_EVENT_POLARITY); wc->mod[card].fxo.polarity = wc->mod[card].fxo.lastpol; Index: wctdm24xxp.c =================================================================== --- wctdm24xxp.c (revision 1497) +++ wctdm24xxp.c (working copy) @@ -1193,9 +1193,10 @@ if (wc->mods[card].fxo.polaritydebounce < 1) { if (wc->mods[card].fxo.lastpol != wc->mods[card].fxo.polarity) { if (debug) - printk("%lu Polarity reversed (%d -> %d)\n", jiffies, + printk("%lu Polarity reversed (%d -> %d) on %d/%d\n", jiffies, wc->mods[card].fxo.polarity, - wc->mods[card].fxo.lastpol); + wc->mods[card].fxo.lastpol, + wc->span.spanno, card + 1); if (wc->mods[card].fxo.polarity) zt_qevent_lock(&wc->chans[card], ZT_EVENT_POLARITY); wc->mods[card].fxo.polarity = wc->mods[card].fxo.lastpol;