summaryrefslogtreecommitdiff
path: root/lib/log
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 /lib/log
parented9162cd882426109fba14413ff2840edfd99341 (diff)
downloadlvm2-673d4f745322d6d9ca274697148267114058beec.tar.gz
cleanup: use unsigned with EPOCH printf format
Diffstat (limited to 'lib/log')
-rw-r--r--lib/log/log.c2
1 files changed, 1 insertions, 1 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 {