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
Unknown Object (File)
Sat, May 16, 1:45 AM
Unknown Object (File)
Sat, May 16, 1:37 AM
Unknown Object (File)
Sat, May 16, 1:36 AM
Unknown Object (File)
Tue, Apr 28, 6:17 AM
Unknown Object (File)
Tue, Apr 28, 12:36 AM
Unknown Object (File)
Sat, Apr 25, 2:10 AM
Unknown Object (File)
Apr 6 2026, 12:49 PM
Unknown Object (File)
Mar 31 2026, 9:03 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