summaryrefslogtreecommitdiff
path: root/src/journal/journald.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-10-12 12:22:57 +0200
committerLennart Poettering <lennart@poettering.net>2016-10-12 20:25:20 +0200
commit1c69f0966a86e3c9ae0120e6222709414b68e186 (patch)
treeaccb7b04209ea28d13e63a6fba6e381a4913ac03 /src/journal/journald.c
parentded5034e7a3e7b3330bbe4f5dd13ca994785d6cb (diff)
journal: add an explicit check for uninitialized objects
Let's make dissecting of borked journal files more expressive: if we encounter an object whose first 8 bytes are all zeroes, then let's assume the object was simply never initialized, and say so. Previously, this would be detected as "overly short object", which is true too in a away, but it's a lot more helpful printing different debug options for the case where the size is not initialized at all and where the size is initialized to some bogus value. No function behaviour change, only a different log messages for both cases.
Diffstat (limited to 'src/journal/journald.c')
0 files changed, 0 insertions, 0 deletions