From 23455c538740a36be779f04926dd6e046f6acb76 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Fri, 24 Aug 2001 14:26:47 +0000 Subject: make ofprint useable, do carriage return on newline, increment pointer to printed buf, instead of printing same character. --- sys/dev/ofw/ofcons.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/dev/ofw/ofcons.c b/sys/dev/ofw/ofcons.c index 1c4db34da18..f55bfa5be82 100644 --- a/sys/dev/ofw/ofcons.c +++ b/sys/dev/ofw/ofcons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ofcons.c,v 1.7 2001/08/24 14:23:41 drahn Exp $ */ +/* $OpenBSD: ofcons.c,v 1.8 2001/08/24 14:26:46 drahn Exp $ */ /* $NetBSD: ofcons.c,v 1.3 1996/10/13 01:38:11 christos Exp $ */ /* @@ -398,6 +398,9 @@ ofprintf(char *fmt, ...) c = buf; while (*c != '\0') { ofccnputc(0, *c); + if (*c == '\n') + ofccnputc(0, '\r'); + c++; } va_end(ap); -- cgit v1.2.3