chiark / gitweb /
nspawn: don't make assumptions about the size of pid_t
authorLennart Poettering <lennart@poettering.net>
Fri, 15 Mar 2013 15:48:48 +0000 (16:48 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 15 Mar 2013 15:49:08 +0000 (16:49 +0100)
src/nspawn/nspawn.c

index 1a3e41f..9268cbc 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]);