summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2016-05-03 21:24:12 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2016-05-05 23:55:20 +0200
commit673d4f745322d6d9ca274697148267114058beec (patch)
tree45a0c928414006cb5f6bf57cf3427059ad1aeb10
parented9162cd882426109fba14413ff2840edfd99341 (diff)
downloadlvm2-673d4f745322d6d9ca274697148267114058beec.tar.gz
cleanup: use unsigned with EPOCH printf format
-rw-r--r--lib/log/log.c2
-rw-r--r--man/lvm.8.in3
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/log/log.c b/lib/log/log.c
index d939b9daf..7b0026f22 100644
--- a/lib/log/log.c
+++ b/lib/log/log.c
@@ -90,7 +90,7 @@ void init_log_file(const char *log_file, int append)
log_warn("WARNING: Cannot parse content of %s.", statfile);
} else {
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_file_path[0] = '\0';
} else {
diff --git a/man/lvm.8.in b/man/lvm.8.in
index d2da72c28..f8400cf1d 100644
--- a/man/lvm.8.in
+++ b/man/lvm.8.in
@@ -764,7 +764,8 @@ Path to the socket used to communicate with lvmpolld..
.TP
.B LVM_LOG_FILE_EPOCH
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.
.TP
.B LVM_EXPECTED_EXIT_STATUS