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_file.c | |
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_file.c')
-rw-r--r-- | cmd/zed/zed_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zed/zed_file.c b/cmd/zed/zed_file.c index 7b77345d1..3d62f9fe4 100644 --- a/cmd/zed/zed_file.c +++ b/cmd/zed/zed_file.c @@ -145,7 +145,7 @@ zed_file_unlock(int fd) /* * Test whether an exclusive advisory lock could be obtained for the open * file descriptor [fd]. - * Return 0 if the file is not locked, >0 for the pid of another process + * Return 0 if the file is not locked, >0 for the PID of another process * holding a conflicting lock, or -1 on error (with errno set). */ pid_t |