gigaset: skip unnecessary hex formatting
Don't generate the hex representation of the payload data if it isn't actually used afterwards. Impact: optimization Signed-off-by: Tilman Schmidt <tilman@imap.cc> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
42e3d61115
commit
1315d69634
@ -246,6 +246,10 @@ static inline void dump_bytes(enum debuglevel level, const char *tag,
|
||||
unsigned char c;
|
||||
static char dbgline[3 * 32 + 1];
|
||||
int i = 0;
|
||||
|
||||
if (!(gigaset_debuglevel & level))
|
||||
return;
|
||||
|
||||
while (count-- > 0) {
|
||||
if (i > sizeof(dbgline) - 4) {
|
||||
dbgline[i] = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user