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/logger.c | |
parent | 6cf6bbc2682c6df010d64ea7e49d93affa7282cd (diff) |
don't use 'long long' unless we have a really good reason to
Diffstat (limited to 'src/logger.c')
-rw-r--r-- | src/logger.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/logger.c b/src/logger.c index de4dfad386..66f6f8c2e5 100644 --- a/src/logger.c +++ b/src/logger.c @@ -143,7 +143,7 @@ static int stream_log(Stream *s, char *p, usec_t ts) { return -EINVAL; } - snprintf(header_pid, sizeof(header_pid), "[%llu]: ", (unsigned long long) s->pid); + snprintf(header_pid, sizeof(header_pid), "[%lu]: ", (unsigned long) s->pid); char_array_0(header_pid); zero(iovec); @@ -538,7 +538,7 @@ int main(int argc, char *argv[]) { log_set_target(LOG_TARGET_SYSLOG_OR_KMSG); log_parse_environment(); - log_info("systemd-logger running as pid %llu", (unsigned long long) getpid()); + log_info("systemd-logger running as pid %lu", (unsigned long) getpid()); if ((n = sd_listen_fds(true)) < 0) { log_error("Failed to read listening file descriptors from environment: %s", strerror(-r)); @@ -586,7 +586,7 @@ fail: server_done(&server); - log_info("systemd-logger stopped as pid %llu", (unsigned long long) getpid()); + log_info("systemd-logger stopped as pid %lu", (unsigned long) getpid()); return r; } |