sparc: prom: Use n instead of len to decrement buf
RFC 3/8 sparc: prom: Use n instead of len to decrement buf
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 <[email protected]>
--- arch/sparc/prom/console_64.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/sparc/prom/console_64.c +1 -1
@@ -43,6 +43,6 @@ void prom_console_write_buf(const char *buf, int len)if (n <0 )continue ; len -= n; - buf += len; + buf += n; } }