]> err.no Git - systemd/commitdiff
manager: properly write header marker on serialization
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Oct 2010 12:40:44 +0000 (14:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 Oct 2010 12:40:44 +0000 (14:40 +0200)
src/manager.c

index fb2656eb3ddf30c141e90e167c498c191b407a44..37f0d0492916e31587359e3053a9ca5b9cac172e 100644 (file)
@@ -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;