Page MenuHomeFreeBSD

syslog(3): example error log message should use LOG_ERR level (PR 216756)
ClosedPublic

Authored by bcr on Aug 2 2017, 3:21 PM.
Tags
None
Referenced Files
F170507567: D11824.id31476.diff
Sat, Sep 5, 3:53 AM
F170434906: D11824.id.diff
Fri, Sep 4, 7:49 PM
Unknown Object (File)
Fri, Sep 4, 12:30 PM
Unknown Object (File)
Thu, Sep 3, 6:56 PM
Unknown Object (File)
Thu, Sep 3, 12:03 PM
Unknown Object (File)
Wed, Sep 2, 12:10 PM
Unknown Object (File)
Tue, Sep 1, 6:12 PM
Unknown Object (File)
Tue, Sep 1, 5:56 AM

Details

Summary

This is the patch attached to bug 216756. The last entry in the EXAMPLE section looks like this:

syslog(LOG_INFO|LOG_LOCAL2, "foobar error: %m");

Since the message says that an error is logged, it should not be LOG_INFO, but LOG_ERROR instead. The patch addresses that.

Test Plan
  1. Apply the patch to head/lib/libc/gen/syslog.3
  2. Check the output: man ./head/lib/libc/gen/syslog.3

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable