From: Lennart Poettering Date: Wed, 27 Jul 2016 09:50:37 +0000 (+0200) Subject: core: use the correct APIs to determine whether a dual timestamp is initialized X-Git-Tag: v232~321^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=af9d16e10a23899b821af19e54e339486a86bd82;p=thirdparty%2Fsystemd.git core: use the correct APIs to determine whether a dual timestamp is initialized --- diff --git a/src/core/execute.c b/src/core/execute.c index bc0fd274024..90281397235 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -2969,12 +2969,12 @@ void exec_status_dump(ExecStatus *s, FILE *f, const char *prefix) { "%sPID: "PID_FMT"\n", prefix, s->pid); - if (s->start_timestamp.realtime > 0) + if (dual_timestamp_is_set(&s->start_timestamp)) fprintf(f, "%sStart Timestamp: %s\n", prefix, format_timestamp(buf, sizeof(buf), s->start_timestamp.realtime)); - if (s->exit_timestamp.realtime > 0) + if (dual_timestamp_is_set(&s->exit_timestamp)) fprintf(f, "%sExit Timestamp: %s\n" "%sExit Code: %s\n"