Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alan Cox and committed by
Greg Kroah-Hartman
47fdd641 b6abc904

+1 -1
+1 -1
drivers/tty/n_gsm.c
··· 488 488 default: 489 489 if (!(control & 0x01)) { 490 490 pr_cont("I N(S)%d N(R)%d", 491 - (control & 0x0E) >> 1, (control & 0xE) >> 5); 491 + (control & 0x0E) >> 1, (control & 0xE0) >> 5); 492 492 } else switch (control & 0x0F) { 493 493 case RR: 494 494 pr_cont("RR(%d)", (control & 0xE0) >> 5);