diff options
Diffstat (limited to 'drivers/isdn/gigaset')
-rw-r--r-- | drivers/isdn/gigaset/isocdata.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/isdn/gigaset/isocdata.c b/drivers/isdn/gigaset/isocdata.c index b171e75cb52e..09202a5a3444 100644 --- a/drivers/isdn/gigaset/isocdata.c +++ b/drivers/isdn/gigaset/isocdata.c | |||
@@ -246,6 +246,10 @@ static inline void dump_bytes(enum debuglevel level, const char *tag, | |||
246 | unsigned char c; | 246 | unsigned char c; |
247 | static char dbgline[3 * 32 + 1]; | 247 | static char dbgline[3 * 32 + 1]; |
248 | int i = 0; | 248 | int i = 0; |
249 | |||
250 | if (!(gigaset_debuglevel & level)) | ||
251 | return; | ||
252 | |||
249 | while (count-- > 0) { | 253 | while (count-- > 0) { |
250 | if (i > sizeof(dbgline) - 4) { | 254 | if (i > sizeof(dbgline) - 4) { |
251 | dbgline[i] = '\0'; | 255 | dbgline[i] = '\0'; |