chiark / gitweb /
journal: drop path name from cursor strings
authorLennart Poettering <lennart@poettering.net>
Wed, 10 Oct 2012 20:24:28 +0000 (22:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 10 Oct 2012 20:41:02 +0000 (22:41 +0200)
we had this mostly for debugging purposes and it was ignored when
parsing anyway, so let's get rid of it

src/journal/sd-journal.c

index 6764f2ee6cf21265a88fcb162f8f0e25d1d14ee9..9e594a2cffa3fd9443b6453156aca3322631e360 100644 (file)
@@ -940,12 +940,11 @@ _public_ int sd_journal_get_cursor(sd_journal *j, char **cursor) {
         sd_id128_to_string(o->entry.boot_id, bid);
 
         if (asprintf(cursor,
         sd_id128_to_string(o->entry.boot_id, bid);
 
         if (asprintf(cursor,
-                     "s=%s;i=%llx;b=%s;m=%llx;t=%llx;x=%llx;p=%s",
+                     "s=%s;i=%llx;b=%s;m=%llx;t=%llx;x=%llx",
                      sid, (unsigned long long) le64toh(o->entry.seqnum),
                      bid, (unsigned long long) le64toh(o->entry.monotonic),
                      (unsigned long long) le64toh(o->entry.realtime),
                      sid, (unsigned long long) le64toh(o->entry.seqnum),
                      bid, (unsigned long long) le64toh(o->entry.monotonic),
                      (unsigned long long) le64toh(o->entry.realtime),
-                     (unsigned long long) le64toh(o->entry.xor_hash),
-                     path_get_file_name(j->current_file->path)) < 0)
+                     (unsigned long long) le64toh(o->entry.xor_hash)) < 0)
                 return -ENOMEM;
 
         return 1;
                 return -ENOMEM;
 
         return 1;