Bug 207389

Summary: BUS_ADD_CHILD(9) Error in BUS_ADD_CHILD return type in prototype
Product: Documentation Reporter: pguyot
Component: Manual PagesAssignee: Oleksandr Tymoshenko <gonzo>
Status: Closed FIXED    
Severity: Affects Some People CC: doc, franz.moser.18, gonzo
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description pguyot 2016-02-21 08:14:03 UTC
Line 40 of share/man/man9/BUS_ADD_CHILD.9, BUS_ADD_CHILD prototype is:

     int
     BUS_ADD_CHILD(device_t dev, int order, const char *name, int unit);

The return type actually is device_t, as mentioned in RETURN VALUES section of the man page.
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-04-09 05:48:25 UTC
A commit references this bug:

Author: gonzo
Date: Mon Apr  9 05:48:12 UTC 2018
New revision: 332317
URL: https://svnweb.freebsd.org/changeset/base/332317

Log:
  [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
  MFC after:	3 days

Changes:
  head/share/man/man9/BUS_ADD_CHILD.9
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-05-14 23:12:42 UTC
A commit references this bug:

Author: gonzo
Date: Mon May 14 23:12:30 UTC 2018
New revision: 333616
URL: https://svnweb.freebsd.org/changeset/base/333616

Log:
  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)

Changes:
_U  stable/11/
  stable/11/lib/libc/gen/syslog.3
  stable/11/share/man/man9/BUS_ADD_CHILD.9