diff options
author | Alan Cox <alan@linux.intel.com> | 2012-09-17 07:02:35 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-17 07:45:30 -0400 |
commit | 47fdd641ccab534a12052dbbf093865daf114bf4 (patch) | |
tree | 03c88b8dc724f80e711330f2a1e4566cb1c75a0e /drivers/tty/n_gsm.c | |
parent | b6abc90480a6bff2c2ff4904b7ae708f51ce8c03 (diff) |
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>
Diffstat (limited to 'drivers/tty/n_gsm.c')
-rw-r--r-- | drivers/tty/n_gsm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c index 3e210a430fb3..1e8e8ce55959 100644 --- a/drivers/tty/n_gsm.c +++ b/drivers/tty/n_gsm.c | |||
@@ -488,7 +488,7 @@ static void gsm_print_packet(const char *hdr, int addr, int cr, | |||
488 | default: | 488 | default: |
489 | if (!(control & 0x01)) { | 489 | if (!(control & 0x01)) { |
490 | pr_cont("I N(S)%d N(R)%d", | 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 | } else switch (control & 0x0F) { | 492 | } else switch (control & 0x0F) { |
493 | case RR: | 493 | case RR: |
494 | pr_cont("RR(%d)", (control & 0xE0) >> 5); | 494 | pr_cont("RR(%d)", (control & 0xE0) >> 5); |