diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-06-19 04:35:52 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-06-19 04:35:52 +0200 |
commit | bb00e604097fba830af1dc078d78aff278dfcd37 (patch) | |
tree | 01cda212012b5159e073eede2d27a93cafa0f647 /src/execute.c | |
parent | 6cf6bbc2682c6df010d64ea7e49d93affa7282cd (diff) |
don't use 'long long' unless we have a really good reason to
Diffstat (limited to 'src/execute.c')
-rw-r--r-- | src/execute.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/execute.c b/src/execute.c index 28baeedcfc..d5bb8d3602 100644 --- a/src/execute.c +++ b/src/execute.c @@ -1213,7 +1213,7 @@ int exec_spawn(ExecCommand *command, } if (n_fds > 0) - if (asprintf(our_env + n_env++, "LISTEN_PID=%llu", (unsigned long long) getpid()) < 0 || + if (asprintf(our_env + n_env++, "LISTEN_PID=%lu", (unsigned long) getpid()) < 0 || asprintf(our_env + n_env++, "LISTEN_FDS=%u", n_fds) < 0) { r = EXIT_MEMORY; goto fail; @@ -1270,7 +1270,7 @@ int exec_spawn(ExecCommand *command, if (cgroup_bondings) cgroup_bonding_install_list(cgroup_bondings, pid); - log_debug("Forked %s as %llu", command->path, (unsigned long long) pid); + log_debug("Forked %s as %lu", command->path, (unsigned long) pid); command->exec_status.pid = pid; command->exec_status.start_timestamp = now(CLOCK_REALTIME); @@ -1572,8 +1572,8 @@ void exec_status_dump(ExecStatus *s, FILE *f, const char *prefix) { return; fprintf(f, - "%sPID: %llu\n", - prefix, (unsigned long long) s->pid); + "%sPID: %lu\n", + prefix, (unsigned long) s->pid); if (s->start_timestamp > 0) fprintf(f, |