aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/vcons/vcons.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/sys/dev/vcons/vcons.c b/sys/dev/vcons/vcons.c
index 91ea906..cba0b85 100644
--- a/sys/dev/vcons/vcons.c
+++ b/sys/dev/vcons/vcons.c
@@ -197,6 +197,25 @@ vcons_putch(struct vcons_screen *scr, char c)
return 0;
}
+/*
+ * Write out a string on the console.
+ *
+ * @s: String to write.
+ */
+int
+vcons_putstr(struct vcons_screen *scr, const char *s)
+{
+ int status;
+
+ while (*s != '\0') {
+ if ((status = vcons_putch(scr, *(s++))) != 0) {
+ return status;
+ }
+ }
+
+ return 0;
+}
+
void
vcons_attach(struct vcons_screen *scr)
{