Skip to contentSkip to conversation

sparc: prom: Use n instead of len to decrement buf

RFC In review Julian Calaby 1 participant 1 message Dec 4, 2010 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

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.

---
 arch/sparc/prom/console_64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/sparc/prom/console_64.c +1 -1
index ed39e75..d4eb8ae 100644
@@ -43,6 +43,6 @@ void prom_console_write_buf(const char *buf, int len)
 		if (n < 0)
 			continue;
 		len -= n;
-		buf += len;
+		buf += n;
 	}
 }