diff options
author | Tilman Schmidt <tilman@imap.cc> | 2007-02-12 03:52:26 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 12:48:29 -0500 |
commit | 92ba0ee2770ed4954e3f8ba412ef2f37e5519477 (patch) | |
tree | 612df60ffdd92b987e06e729277ce9a076ba5388 /drivers/isdn/gigaset/isocdata.c | |
parent | 7435f50e1261f569c660efb4ae52e8bc21a92cbd (diff) |
[PATCH] drivers/isdn/gigaset: reduce kernel message spam
Reduce the number of kernel messages the Gigaset drivers produce in case of an
excessively long device response, from one per character exceeding the limit
to one per overlong message.
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/isdn/gigaset/isocdata.c')
-rw-r--r-- | drivers/isdn/gigaset/isocdata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/isdn/gigaset/isocdata.c b/drivers/isdn/gigaset/isocdata.c index df988eb0e36f..8c0eb522dab1 100644 --- a/drivers/isdn/gigaset/isocdata.c +++ b/drivers/isdn/gigaset/isocdata.c | |||
@@ -921,6 +921,8 @@ static void cmd_loop(unsigned char *src, int numbytes, struct inbuf_t *inbuf) | |||
921 | /* end of line */ | 921 | /* end of line */ |
922 | gig_dbg(DEBUG_TRANSCMD, "%s: End of Command (%d Bytes)", | 922 | gig_dbg(DEBUG_TRANSCMD, "%s: End of Command (%d Bytes)", |
923 | __func__, cbytes); | 923 | __func__, cbytes); |
924 | if (cbytes >= MAX_RESP_SIZE - 1) | ||
925 | dev_warn(cs->dev, "response too large\n"); | ||
924 | cs->cbytes = cbytes; | 926 | cs->cbytes = cbytes; |
925 | gigaset_handle_modem_response(cs); | 927 | gigaset_handle_modem_response(cs); |
926 | cbytes = 0; | 928 | cbytes = 0; |
@@ -929,8 +931,6 @@ static void cmd_loop(unsigned char *src, int numbytes, struct inbuf_t *inbuf) | |||
929 | /* advance in line buffer, checking for overflow */ | 931 | /* advance in line buffer, checking for overflow */ |
930 | if (cbytes < MAX_RESP_SIZE - 1) | 932 | if (cbytes < MAX_RESP_SIZE - 1) |
931 | cbytes++; | 933 | cbytes++; |
932 | else | ||
933 | dev_warn(cs->dev, "response too large\n"); | ||
934 | } | 934 | } |
935 | } | 935 | } |
936 | 936 | ||