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)
Oct 17 2024, 6:55 AM
Unknown Object (File)
Sep 16 2024, 6:14 PM
Unknown Object (File)
Sep 4 2024, 11:01 PM
Unknown Object (File)
Sep 1 2024, 10:59 PM
Unknown Object (File)
Aug 1 2024, 7:46 AM
Unknown Object (File)
Jul 29 2024, 5:11 PM
Unknown Object (File)
Jul 10 2024, 3:11 PM
Unknown Object (File)
Jun 28 2024, 6:53 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