projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa49d8e
)
tty: n_gsm: Improve debug output
author
Gregory CLEMENT
<gregory.clement@bootlin.com>
Tue, 12 May 2020 11:53:21 +0000
(13:53 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 15 May 2020 11:37:32 +0000
(13:37 +0200)
Use appropriate print helpers for debug messages.
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Link:
https://lore.kernel.org/r/20200512115323.1447922-2-gregory.clement@bootlin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_gsm.c
patch
|
blob
|
history
diff --git
a/drivers/tty/n_gsm.c
b/drivers/tty/n_gsm.c
index
d77ed82
..
67c8f81
100644
(file)
--- a/
drivers/tty/n_gsm.c
+++ b/
drivers/tty/n_gsm.c
@@
-504,18
+504,8
@@
static void gsm_print_packet(const char *hdr, int addr, int cr,
else
pr_cont("(F)");
- if (dlen) {
- int ct = 0;
- while (dlen--) {
- if (ct % 8 == 0) {
- pr_cont("\n");
- pr_debug(" ");
- }
- pr_cont("%02X ", *data++);
- ct++;
- }
- }
- pr_cont("\n");
+ if (dlen)
+ print_hex_dump_bytes("", DUMP_PREFIX_NONE, data, dlen);
}