Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man9 Describe device_printf(9).
details: https://anonhg.NetBSD.org/src/rev/c7484025b3f6
branches: trunk
changeset: 761235:c7484025b3f6
user: dyoung <dyoung%NetBSD.org@localhost>
date: Fri Jan 21 17:51:19 2011 +0000
description:
Describe device_printf(9).
XXX Need symbolic link device_printf.9 -> kprintf.9.
diffstat:
share/man/man9/kprintf.9 | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diffs (47 lines):
diff -r 4ef44d06dbc3 -r c7484025b3f6 share/man/man9/kprintf.9
--- a/share/man/man9/kprintf.9 Fri Jan 21 17:46:19 2011 +0000
+++ b/share/man/man9/kprintf.9 Fri Jan 21 17:51:19 2011 +0000
@@ -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" "..."
@@ -107,6 +110,12 @@
.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
.Fn printf ,
Home |
Main Index |
Thread Index |
Old Index