mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cleanup: use unsigned with EPOCH printf format
This commit is contained in:
parent
ed9162cd88
commit
673d4f7453
@ -90,7 +90,7 @@ void init_log_file(const char *log_file, int append)
|
|||||||
log_warn("WARNING: Cannot parse content of %s.", statfile);
|
log_warn("WARNING: Cannot parse content of %s.", statfile);
|
||||||
} else {
|
} else {
|
||||||
if (dm_snprintf(_log_file_path, sizeof(_log_file_path),
|
if (dm_snprintf(_log_file_path, sizeof(_log_file_path),
|
||||||
"%s_%s_%d_%lld", log_file, env, pid, starttime) < 0) {
|
"%s_%s_%d_%llu", log_file, env, pid, starttime) < 0) {
|
||||||
log_warn("WARNING: Debug log file path is too long for epoch.");
|
log_warn("WARNING: Debug log file path is too long for epoch.");
|
||||||
_log_file_path[0] = '\0';
|
_log_file_path[0] = '\0';
|
||||||
} else {
|
} else {
|
||||||
|
@ -764,7 +764,8 @@ Path to the socket used to communicate with lvmpolld..
|
|||||||
.TP
|
.TP
|
||||||
.B LVM_LOG_FILE_EPOCH
|
.B LVM_LOG_FILE_EPOCH
|
||||||
A string of up to 32 letters appended to the log filename and
|
A string of up to 32 letters appended to the log filename and
|
||||||
followed by the process ID and a timestamp. When set, each process logs to a
|
followed by the process ID and a startup timestamp using
|
||||||
|
this format string "_%s_%d_%llu". When set, each process logs to a
|
||||||
separate file.
|
separate file.
|
||||||
.TP
|
.TP
|
||||||
.B LVM_EXPECTED_EXIT_STATUS
|
.B LVM_EXPECTED_EXIT_STATUS
|
||||||
|
Loading…
Reference in New Issue
Block a user