chiark / gitweb /
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 fb2656e..37f0d04 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;