summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2018-05-14 23:12:30 +0000
committergonzo <gonzo@FreeBSD.org>2018-05-14 23:12:30 +0000
commit9206e155f753a055d39ebaa4c742c43dabf93eb6 (patch)
tree2790195b3a2e70a6d1ee68c3bfbf4107273014c4
parente788dc4f7478d732ce9918554ee7f9115b5805e6 (diff)
downloadFreeBSD-src-9206e155f753a055d39ebaa4c742c43dabf93eb6.zip
FreeBSD-src-9206e155f753a055d39ebaa4c742c43dabf93eb6.tar.gz
MFC r332317, r332439, r332442
Approved by: re r332317: [man] Fix return type of BUS_ADD_CHILD(9) Fix return type of BUS_ADD_CHILD(9) in SYNOPSYS section, it should be device_t, not int PR: 207389 r332439: Fix quotes in the example code in syslog(3) BUGS section mdoc treats verbatim quotes in .Dl as a string delimiter and does not pass them to the rendered output. Use special char \*q to specify double quote PR: 216755 r332442: Bump .Dd value (forgot to do this in r332439)
-rw-r--r--lib/libc/gen/syslog.34
-rw-r--r--share/man/man9/BUS_ADD_CHILD.94
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/gen/syslog.3 b/lib/libc/gen/syslog.3
index b513adc..329cd40 100644
--- a/lib/libc/gen/syslog.3
+++ b/lib/libc/gen/syslog.3
@@ -28,7 +28,7 @@
.\" @(#)syslog.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd July 21, 2015
+.Dd April 12, 2018
.Dt SYSLOG 3
.Os
.Sh NAME
@@ -292,4 +292,4 @@ for later interpolation by
.Pp
Always use the proper secure idiom:
.Pp
-.Dl syslog(priority, "%s", string);
+.Dl syslog(priority, \*q%s\*q, string);
diff --git a/share/man/man9/BUS_ADD_CHILD.9 b/share/man/man9/BUS_ADD_CHILD.9
index 1e98ffe..111ae7f 100644
--- a/share/man/man9/BUS_ADD_CHILD.9
+++ b/share/man/man9/BUS_ADD_CHILD.9
@@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd October 28, 2015
+.Dd April 8, 2018
.Dt BUS_ADD_CHILD 9
.Os
.Sh NAME
@@ -37,7 +37,7 @@
.Sh SYNOPSIS
.In sys/param.h
.In sys/bus.h
-.Ft int
+.Ft device_t
.Fn BUS_ADD_CHILD "device_t dev" "int order" "const char *name" "int unit"
.Sh DESCRIPTION
The
OpenPOWER on IntegriCloud