* [RFC 3/8] sparc: prom: Use n instead of len to decrement buf
@ 2010-12-04 3:57 Julian Calaby
0 siblings, 0 replies; only message in thread
From: Julian Calaby @ 2010-12-04 3:57 UTC (permalink / raw)
To: sparclinux
If the prom functions don't print the entire length of the buffer
we provide them, we should start over from where they finished,
rather than marking the entirety of the buffer as written.
Signed-off-by: Julian Calaby <julian.calaby@gmail.com>
---
arch/sparc/prom/console_64.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/sparc/prom/console_64.c b/arch/sparc/prom/console_64.c
index ed39e75..d4eb8ae 100644
--- a/arch/sparc/prom/console_64.c
+++ b/arch/sparc/prom/console_64.c
@@ -43,6 +43,6 @@ void prom_console_write_buf(const char *buf, int len)
if (n < 0)
continue;
len -= n;
- buf += len;
+ buf += n;
}
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-12-04 3:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-04 3:57 [RFC 3/8] sparc: prom: Use n instead of len to decrement buf Julian Calaby
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.