From f2382a94e0fd5d2482e0b2fe120674a6e156ff80 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 20 Oct 2010 14:40:44 +0200 Subject: [PATCH] manager: properly write header marker on serialization --- src/manager.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/manager.c b/src/manager.c index fb2656eb..37f0d049 100644 --- a/src/manager.c +++ b/src/manager.c @@ -2490,15 +2490,17 @@ int manager_serialize(Manager *m, FILE *f, FDSet *fds) { assert(f); assert(fds); - fprintf(f, "startup-timestamp=%llu %llu\n\n", + fprintf(f, "startup-timestamp=%llu %llu\n", (unsigned long long) m->startup_timestamp.realtime, (unsigned long long) m->startup_timestamp.monotonic); if (dual_timestamp_is_set(&m->finish_timestamp)) - fprintf(f, "finish-timestamp=%llu %llu\n\n", + fprintf(f, "finish-timestamp=%llu %llu\n", (unsigned long long) m->finish_timestamp.realtime, (unsigned long long) m->finish_timestamp.monotonic); + fputc('\n', f); + HASHMAP_FOREACH_KEY(u, t, m->units, i) { if (u->meta.id != t) continue; -- 2.39.5