]> git.ipfire.org Git - thirdparty/systemd.git/commit
log: Add key/value support to the log context
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 21 Mar 2023 13:51:56 +0000 (14:51 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 21 Mar 2023 13:54:04 +0000 (14:54 +0100)
commit81b3565efdb08df93596cc7a79ece57b528a69f3
treed2981acd639cb313d15a832e2d7a99de4c7467cf
parent883354532cb6f050baf86511fa59baf908391714
log: Add key/value support to the log context

Now that we have reference counting, it's useful to be able to push
single key values onto the log context separately, so that we don't
have to allocate new storage to join the separate string together into
a single field which means we won't be able to reuse a context containing
the same field.
src/basic/log.c
src/basic/log.h
src/libsystemd/sd-bus/sd-bus.c
src/libsystemd/sd-device/device-monitor.c
src/test/test-log.c