]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
jsm: print byte we are dequeing
authorThadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Wed, 24 Aug 2011 16:14:23 +0000 (13:14 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 24 Aug 2011 22:29:44 +0000 (15:29 -0700)
Instead of printing the head of the buffer, we should print the tail,
which is the byte we are sending to the device.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/jsm/jsm_neo.c

index bd6e84699e1194552e4e4f7ffc68d9db066e1a62..81dfafa11b0bc4f73e4cb0cdd37cee021f84046c 100644 (file)
@@ -522,7 +522,7 @@ static void neo_copy_data_from_queue_to_uart(struct jsm_channel *ch)
 
                        writeb(circ->buf[circ->tail], &ch->ch_neo_uart->txrx);
                        jsm_printk(WRITE, INFO, &ch->ch_bd->pci_dev,
-                                       "Tx data: %x\n", circ->buf[circ->head]);
+                                       "Tx data: %x\n", circ->buf[circ->tail]);
                        circ->tail = (circ->tail + 1) & (UART_XMIT_SIZE - 1);
                        ch->ch_txcount++;
                }