mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 10:54:35 +03:00
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
This commit is contained in:
committed by
Brian Behlendorf
parent
5a8855b716
commit
8125fb7190
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user