tty: n_gsm: Improve debug output
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>
This commit is contained in:
Родитель
aa49d8e8b2
Коммит
fe92c2a801
|
@ -504,18 +504,8 @@ static void gsm_print_packet(const char *hdr, int addr, int cr,
|
||||||
else
|
else
|
||||||
pr_cont("(F)");
|
pr_cont("(F)");
|
||||||
|
|
||||||
if (dlen) {
|
if (dlen)
|
||||||
int ct = 0;
|
print_hex_dump_bytes("", DUMP_PREFIX_NONE, data, dlen);
|
||||||
while (dlen--) {
|
|
||||||
if (ct % 8 == 0) {
|
|
||||||
pr_cont("\n");
|
|
||||||
pr_debug(" ");
|
|
||||||
}
|
|
||||||
pr_cont("%02X ", *data++);
|
|
||||||
ct++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
pr_cont("\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче