]> granicus.if.org Git - zfs/commit
Cleanup zed logging
authorChris Dunlap <cdunlap@llnl.gov>
Thu, 28 Aug 2014 21:39:48 +0000 (14:39 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 2 Sep 2014 21:18:53 +0000 (14:18 -0700)
commit8125fb71905cd97a5954db34014a455eb2c1c3d2
tree59849762d8c7b67a71768c85865da57acacbe62c
parent5a8855b716ad9177ed393769834ce9e08d2a3cfe
Cleanup zed logging

This is a set of minor cleanup changes related to zed logging:
- Remove the program identity prefix from messages written to stderr
  since systemd already prepends this output with the program name.
- Replace the copy of the program identity string with a ptr reference.
- Replace "pid" with "PID" for consistency in comments & strings.
- Rename the zed_log.c struct _ctx component "level" to "priority".
- Add the LOG_PID option for messages written to syslog.

Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #2252
cmd/zed/zed_conf.c
cmd/zed/zed_file.c
cmd/zed/zed_log.c
cmd/zed/zed_log.h