From: Alan Cox Date: Mon, 17 Sep 2012 11:02:35 +0000 (+0100) Subject: tty: n_gsm: Fix incorrect debug display X-Git-Tag: v3.7-rc1~172^2~35 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=47fdd641ccab534a12052dbbf093865daf114bf4;p=linux.git 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 Signed-off-by: Greg Kroah-Hartman --- 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, default: if (!(control & 0x01)) { 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) { case RR: pr_cont("RR(%d)", (control & 0xE0) >> 5);