From 82db93c4022c5030a7b18d65196fdbaa2df3f152 Mon Sep 17 00:00:00 2001 From: Noe Rubinstein Date: Mon, 20 Dec 2010 15:00:15 +0100 Subject: cosmetic: frame_in --- xhfc/base.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'xhfc/base.c') 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); } -- cgit v1.2.3