summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-20 14:40:44 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-20 14:40:44 +0200
commitf2382a94e0fd5d2482e0b2fe120674a6e156ff80 (patch)
treee10e5a0bb1cdb1f290a26aa3bcfab26877b7bc6f /src
parentb65a25f256505165660ab388d53446be17021d55 (diff)
manager: properly write header marker on serialization
Diffstat (limited to 'src')
-rw-r--r--src/manager.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/manager.c b/src/manager.c
index fb2656eb3d..37f0d04929 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;