summaryrefslogtreecommitdiff
path: root/arch/arm/common/fiq_debugger.c
diff options
context:
space:
mode:
authorDima Zavin <dima@android.com>2011-10-25 21:24:10 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:39:13 -0800
commit985ecccfab39e289fb1f1e1b0641cc2c298bb4ce (patch)
treef95f21f55b1c5bfce02de04313a4932edd7a22b8 /arch/arm/common/fiq_debugger.c
parentc45e9b96a7734f065ed3237855e88a509cc34358 (diff)
ARM: common: fiq_debugger: peek the 0th char in ringbuf
ringbuf_consume advances the tail ptr, so peek should always just peek at offset 0 Change-Id: I8d3d22d2ec1e563d73b53ccbad302e6d74e64e53 Signed-off-by: Dima Zavin <dima@android.com>
Diffstat (limited to 'arch/arm/common/fiq_debugger.c')
-rw-r--r--arch/arm/common/fiq_debugger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/common/fiq_debugger.c b/arch/arm/common/fiq_debugger.c
index 46bf7af88ff9..71fa962bc535 100644
--- a/arch/arm/common/fiq_debugger.c
+++ b/arch/arm/common/fiq_debugger.c
@@ -578,7 +578,7 @@ static irqreturn_t debug_irq(int irq, void *dev)
int i;
int count = fiq_debugger_ringbuf_level(state->tty_rbuf);
for (i = 0; i < count; i++) {
- int c = fiq_debugger_ringbuf_peek(state->tty_rbuf, i);
+ int c = fiq_debugger_ringbuf_peek(state->tty_rbuf, 0);
tty_insert_flip_char(state->tty, c, TTY_NORMAL);
if (!fiq_debugger_ringbuf_consume(state->tty_rbuf, 1))
pr_warn("fiq tty failed to consume byte\n");