summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-10-10 22:24:28 +0200
committerLennart Poettering <lennart@poettering.net>2012-10-10 22:41:02 +0200
commit934a316cbf68c46f05b7ce0b35fc312eca786747 (patch)
tree27e08935310f298f933d6ee9336160f905643a44
parent9a526a06bd22ccaf6641d11323fb04a0512a0e49 (diff)
journal: drop path name from cursor strings
we had this mostly for debugging purposes and it was ignored when parsing anyway, so let's get rid of it
-rw-r--r--src/journal/sd-journal.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
index 6764f2ee6c..9e594a2cff 100644
--- a/src/journal/sd-journal.c
+++ b/src/journal/sd-journal.c
@@ -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,
- "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),
- (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;