mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
tty: n_gsm: Fix incorrect debug display
In the trace we print the wrong values for N(R) on an I frame. Correct the mask. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b6abc90480
commit
47fdd641cc
@ -488,7 +488,7 @@ static void gsm_print_packet(const char *hdr, int addr, int cr,
|
|||||||
default:
|
default:
|
||||||
if (!(control & 0x01)) {
|
if (!(control & 0x01)) {
|
||||||
pr_cont("I N(S)%d N(R)%d",
|
pr_cont("I N(S)%d N(R)%d",
|
||||||
(control & 0x0E) >> 1, (control & 0xE) >> 5);
|
(control & 0x0E) >> 1, (control & 0xE0) >> 5);
|
||||||
} else switch (control & 0x0F) {
|
} else switch (control & 0x0F) {
|
||||||
case RR:
|
case RR:
|
||||||
pr_cont("RR(%d)", (control & 0xE0) >> 5);
|
pr_cont("RR(%d)", (control & 0xE0) >> 5);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user