PERFORCE change 102751 for review

John Birrell jb at FreeBSD.org
Sat Jul 29 23:59:03 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=102751

Change 102751 by jb at jb_freebsd2 on 2006/07/29 23:58:04

	Add a function to put a string to the console using the new console
	method.

Affected files ...

.. //depot/projects/dtrace/src/sys/kern/tty_cons.c#4 edit

Differences ...

==== //depot/projects/dtrace/src/sys/kern/tty_cons.c#4 (text+ko) ====

@@ -611,6 +611,23 @@
 }
 
 void
+cnputs(char *p, int num)
+{
+	struct cn_device *cnd;
+	struct consdev *cn;
+
+	if (cn_mute || num == 0)
+		return;
+
+	STAILQ_FOREACH(cnd, &cn_devlist, cnd_next) {
+		cn = cnd->cnd_cn;
+		if (!kdb_active || !(cn->cn_flags & CN_FLAG_NODEBUG)) {
+			cn->cn_puts(cn, p, num);
+		}
+	}
+}
+
+void
 cnputc(int c)
 {
 	struct cn_device *cnd;


More information about the p4-projects mailing list