summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-08-24 14:26:47 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-08-24 14:26:47 +0000
commit23455c538740a36be779f04926dd6e046f6acb76 (patch)
treeffc2cb67786675bd0075fd350d8ece30231f53ab /sys
parent65885ba123da359d48fbbf92d49c7a2732544c71 (diff)
make ofprint useable, do carriage return on newline,
increment pointer to printed buf, instead of printing same character.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ofw/ofcons.c5
1 files changed, 4 insertions, 1 deletions
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);