Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jul 2006 23:59:02 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 102751 for review
Message-ID:  <200607292359.k6TNx2GC069970@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=102751

Change 102751 by jb@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607292359.k6TNx2GC069970>