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)
Fri, May 3, 7:27 AM
Unknown Object (File)
Fri, May 3, 5:52 AM
Unknown Object (File)
Fri, May 3, 5:52 AM
Unknown Object (File)
Fri, May 3, 2:10 AM
Unknown Object (File)
Jan 11 2024, 9:46 PM
Unknown Object (File)
Dec 23 2023, 5:24 AM
Unknown Object (File)
Aug 14 2023, 2:51 AM
Unknown Object (File)
May 25 2023, 10: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