subproc: correct casting for nsjconf->tlimit in printf
authorRobert Swiecki <robert@swiecki.net>
Thu, 5 Jul 2018 12:32:07 +0000 (14:32 +0200)
committerRobert Swiecki <robert@swiecki.net>
Thu, 5 Jul 2018 12:32:07 +0000 (14:32 +0200)
subproc.cc

index bae8d3c9613fe69c11aeebba43d3d85bc23618e8..ec5758ed56cc257108f02430239dcdb823e9243c 100644 (file)
@@ -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