From 4ef480546d9691bd03c5d5b40a9caf4fc815b8e8 Mon Sep 17 00:00:00 2001 From: Robert Swiecki Date: Thu, 5 Jul 2018 14:32:07 +0200 Subject: [PATCH] subproc: correct casting for nsjconf->tlimit in printf --- subproc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subproc.cc b/subproc.cc index bae8d3c..ec5758e 100644 --- a/subproc.cc +++ b/subproc.cc @@ -341,9 +341,9 @@ int reapProc(nsjconf_t* nsjconf) { pid_t pid = p.pid; time_t diff = now - p.start; if ((uint64_t)diff >= nsjconf->tlimit) { - LOG_I("PID: %d run time >= time limit (%ld >= %" PRId64 + LOG_I("PID: %d run time >= time limit (%ld >= %" PRIu64 ") (%s). Killing it", - pid, (long)diff, (long)nsjconf->tlimit, p.remote_txt.c_str()); + pid, (long)diff, nsjconf->tlimit, p.remote_txt.c_str()); /* * Probably a kernel bug - some processes cannot be killed with KILL if * they're namespaced, and in a stopped state -- 2.7.4