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, Jan 24, 7:10 PM
Unknown Object (File)
Tue, Jan 21, 3:32 PM
Unknown Object (File)
Tue, Jan 21, 9:15 AM
Unknown Object (File)
Dec 31 2024, 3:57 AM
Unknown Object (File)
Dec 4 2024, 12:04 AM
Unknown Object (File)
Dec 4 2024, 12:04 AM
Unknown Object (File)
Dec 4 2024, 12:04 AM
Unknown Object (File)
Dec 3 2024, 11:43 PM

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