Fri Jan 21 17:51:20 2011 UTC ()
Describe device_printf(9).

XXX Need symbolic link device_printf.9 -> kprintf.9.


(dyoung)
diff -r1.29 -r1.30 src/share/man/man9/kprintf.9

cvs diff -r1.29 -r1.30 src/share/man/man9/kprintf.9 (expand / switch to context diff)
--- src/share/man/man9/kprintf.9 2010/02/17 22:04:14 1.29
+++ src/share/man/man9/kprintf.9 2011/01/21 17:51:19 1.30
@@ -1,6 +1,6 @@
-.\"     $NetBSD: kprintf.9,v 1.29 2010/02/17 22:04:14 cnst Exp $
+.\"     $NetBSD: kprintf.9,v 1.30 2011/01/21 17:51:19 dyoung Exp $
 .\"
-.\" Copyright (c) 1998, 2002, 2007 The NetBSD Foundation, Inc.
+.\" Copyright (c) 1998, 2002, 2007, 2011 The NetBSD Foundation, Inc.
 .\" All rights reserved.
 .\"
 .\" This code is derived from software contributed to The NetBSD Foundation
@@ -27,10 +27,11 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd September 4, 2009
+.Dd January 21, 2011
 .Dt KPRINTF 9
 .Os
 .Sh NAME
+.Nm device_printf ,
 .Nm printf ,
 .Nm snprintf ,
 .Nm vprintf ,
@@ -43,6 +44,8 @@
 .Sh SYNOPSIS
 .In sys/systm.h
 .Ft void
+.Fn "device_printf" "device_t" "const char *format" "..."
+.Ft void
 .Fn "printf" "const char *format" "..."
 .Ft void
 .Fn "printf_nolog" "const char *format" "..."
@@ -106,6 +109,12 @@
 and
 .Fn vprintf
 send formatted strings to the system console.
+The
+.Fn device_printf
+function is identical to
+.Fn printf ,
+except that it prefixes the log message with the corresponding
+device name.
 The
 .Fn printf_nolog
 function is identical to