diff options
author | Chris Dunlap <[email protected]> | 2014-08-28 14:39:48 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2014-09-02 14:18:53 -0700 |
commit | 8125fb71905cd97a5954db34014a455eb2c1c3d2 (patch) | |
tree | 59849762d8c7b67a71768c85865da57acacbe62c /cmd/zed/zed_log.h | |
parent | 5a8855b716ad9177ed393769834ce9e08d2a3cfe (diff) |
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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Issue #2252
Diffstat (limited to 'cmd/zed/zed_log.h')
-rw-r--r-- | cmd/zed/zed_log.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zed/zed_log.h b/cmd/zed/zed_log.h index 767c4c7db..d963089d0 100644 --- a/cmd/zed/zed_log.h +++ b/cmd/zed/zed_log.h @@ -41,7 +41,7 @@ void zed_log_pipe_close_writes(void); void zed_log_pipe_wait(void); -void zed_log_stderr_open(int level); +void zed_log_stderr_open(int priority); void zed_log_stderr_close(void); |