[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1371656071-27754-5-git-send-email-Dean_Jenkins@mentor.com>
Date: Wed, 19 Jun 2013 16:34:30 +0100
From: Dean Jenkins <Dean_Jenkins@...tor.com>
To: davem@...emloft.net, netdev@...r.kernel.org
Subject: [PATCH 4/5] SLIP: Add error message for xleft non-zero
Add a printk to show when xleft is non-zero in sl_encaps.
The idea is to see whether a previous SLIP frame failed to be
fully transmitted.
Signed-off-by: Dean Jenkins <Dean_Jenkins@...tor.com>
---
drivers/net/slip/slip.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/net/slip/slip.c b/drivers/net/slip/slip.c
index f7303e0..e2eff84 100644
--- a/drivers/net/slip/slip.c
+++ b/drivers/net/slip/slip.c
@@ -395,6 +395,10 @@ static void sl_encaps(struct slip *sl, unsigned char *icp, int len)
#endif
count = slip_esc(p, sl->xbuff, len);
+ if (sl->xleft)
+ printk(KERN_ERR "%s: ERROR: xleft is non-zero %d\n",
+ __func__, sl->xleft);
+
/* ensure xleft set by the previous SLIP frame is zero for this frame
* otherwise slip_write_wakeup() can cause a recursive loop.
*/
--
1.8.1.5
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists