From 24aa8cfd616afe377f25cc7fad9d3a48db14b450 Mon Sep 17 00:00:00 2001 From: Thomas Hurst Date: Tue, 23 May 2017 19:36:44 +0100 Subject: [PATCH] [logfile] Fix format string in debug log. Resolves a crash on startup on FreeBSD/i386. --- src/logfile.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/logfile.cc b/src/logfile.cc index 151c354a..0d1dc013 100644 --- a/src/logfile.cc +++ b/src/logfile.cc @@ -93,10 +93,10 @@ throw (error) loo.loo_fd.close_on_exec(); - log_info("Creating logfile: fd=%d; size=%d; mtime=%d; filename=%s", + log_info("Creating logfile: fd=%d; size=%" PRId64 "; mtime=%" PRId64 "; filename=%s", (int) loo.loo_fd, - this->lf_stat.st_size, - this->lf_stat.st_mtime, + (long long) this->lf_stat.st_size, + (long long) this->lf_stat.st_mtime, filename.c_str()); this->lf_valid_filename = true;