summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoe Rubinstein <nrubinstein@proformatique.com>2010-12-20 15:00:15 +0100
committerNoe Rubinstein <nrubinstein@proformatique.com>2010-12-20 15:00:15 +0100
commit82db93c4022c5030a7b18d65196fdbaa2df3f152 (patch)
tree360dca3078b192d7410cc867a04fba25f63edbb8
parent0fba5e27c94f0878965a75ab207a287875fff64e (diff)
cosmetic: frame_in
-rw-r--r--xhfc/base.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/xhfc/base.c b/xhfc/base.c
index 072298b..30c9fd2 100644
--- a/xhfc/base.c
+++ b/xhfc/base.c
@@ -313,6 +313,7 @@ void xhfc_config_data_flow(struct xhfc* x)
}
}
+static uint frames_in;
/**
* hdlc_signal_complete() - Signal dahdi that we have a complete frame.
*
@@ -322,11 +323,12 @@ void xhfc_config_data_flow(struct xhfc* x)
*/
static void hdlc_signal_complete(struct xhfc_span *xhfc_span, u8 stat)
{
+ frames_in++;
if (stat != 0x00) {
if (DBG_HDLC && DBG_SPAN(xhfc_span)) {
printk(KERN_NOTICE DRIVER_NAME "(port %d): STAT=0x%02x indicates "
- "frame problem: %s\n", portno(xhfc_span),
- stat,
+ "frame %d problem: %s\n", portno(xhfc_span),
+ stat, frames_in,
(0xff == stat) ? "HDLC Abort" : "Bad FCS");
}
@@ -335,9 +337,8 @@ static void hdlc_signal_complete(struct xhfc_span *xhfc_span, u8 stat)
} else {
if (DBG_HDLC && DBG_SPAN(xhfc_span)) {
printk(KERN_INFO DRIVER_NAME
- "(port %d): Frame " /*"%d" */ "is good!\n",
- portno(xhfc_span)
- /*, xhfc_span->frames_in */ );
+ "(port %d): Frame %d is good!\n",
+ portno(xhfc_span), frames_in);
}
dahdi_hdlc_finish(xhfc_span->sigchan);
}