mirror of
https://github.com/tstack/lnav
synced 2024-11-17 15:29:40 +00:00
[logfile] Fix format string in debug log.
Resolves a crash on startup on FreeBSD/i386.
This commit is contained in:
parent
7240aaa127
commit
24aa8cfd61
@ -93,10 +93,10 @@ throw (error)
|
|||||||
|
|
||||||
loo.loo_fd.close_on_exec();
|
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,
|
(int) loo.loo_fd,
|
||||||
this->lf_stat.st_size,
|
(long long) this->lf_stat.st_size,
|
||||||
this->lf_stat.st_mtime,
|
(long long) this->lf_stat.st_mtime,
|
||||||
filename.c_str());
|
filename.c_str());
|
||||||
|
|
||||||
this->lf_valid_filename = true;
|
this->lf_valid_filename = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user