chiark / gitweb /
nspawn: don't make assumptions about the size of pid_t
[elogind.git] / src / nspawn / nspawn.c
index 1a3e41f4037ae205923110cbf7193b70f0e24e81..9268cbc246c6797d9030de4ee4d4f3f1694e5cf4 100644 (file)
@@ -1589,7 +1589,7 @@ int main(int argc, char *argv[]) {
                         _exit(EXIT_FAILURE);
                 }
 
-                log_info("Init process in the container running as PID %d", pid);
+                log_info("Init process in the container running as PID %lu.", (unsigned long) pid);
                 close_nointr_nofail(pipefd[0]);
                 close_nointr_nofail(pipefd[1]);