diff options
author | Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com> | 2011-08-24 12:14:23 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-24 18:29:44 -0400 |
commit | dfc97fcebd6a9a85335adcfc0e4d0a204bbaea35 (patch) | |
tree | f61ea63e2cbcb70b375f01bf2f0eb4a78a6af47b /drivers/tty | |
parent | 9d898966c4a07e4a5092215b5a2829d0ef02baa2 (diff) |
jsm: print byte we are dequeing
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>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/jsm/jsm_neo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/jsm/jsm_neo.c b/drivers/tty/serial/jsm/jsm_neo.c index bd6e84699e11..81dfafa11b0b 100644 --- a/drivers/tty/serial/jsm/jsm_neo.c +++ b/drivers/tty/serial/jsm/jsm_neo.c | |||
@@ -522,7 +522,7 @@ static void neo_copy_data_from_queue_to_uart(struct jsm_channel *ch) | |||
522 | 522 | ||
523 | writeb(circ->buf[circ->tail], &ch->ch_neo_uart->txrx); | 523 | writeb(circ->buf[circ->tail], &ch->ch_neo_uart->txrx); |
524 | jsm_printk(WRITE, INFO, &ch->ch_bd->pci_dev, | 524 | jsm_printk(WRITE, INFO, &ch->ch_bd->pci_dev, |
525 | "Tx data: %x\n", circ->buf[circ->head]); | 525 | "Tx data: %x\n", circ->buf[circ->tail]); |
526 | circ->tail = (circ->tail + 1) & (UART_XMIT_SIZE - 1); | 526 | circ->tail = (circ->tail + 1) & (UART_XMIT_SIZE - 1); |
527 | ch->ch_txcount++; | 527 | ch->ch_txcount++; |
528 | } | 528 | } |