lkml.org 
[lkml]   [2011]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3/3] jsm: print byte we are dequeing
    Date
    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>
    ---
    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 bd6e846..81dfafa 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)

    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++;
    }
    --
    1.7.4.4


    \
     
     \ /
      Last update: 2011-08-24 18:17    [W:0.025 / U:0.256 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site