]> git.ipfire.org Git - thirdparty/systemd.git/commit - Makefile.am
journal: implicitly add code location to all messages logged with the native interface
authorLennart Poettering <lennart@poettering.net>
Mon, 2 Apr 2012 17:24:30 +0000 (19:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 2 Apr 2012 17:29:48 +0000 (19:29 +0200)
commitb070e7f3c9ed680c821bd89d42506695f2438506
tree5bef4c80fea167fe8ada2ca80927fcfe5e979eaf
parent1fa80181aecd4b9db513f16c136157a4546686d3
journal: implicitly add code location to all messages logged with the native interface

This logic can be turned off by defining SD_JOURNAL_SUPPRESS_LOCATION
before including sd-journal.h.

This also saves/restores errno in all logging functions, in order to be
useful as logging calls without side-effects.

This also adds a couple of __unlikely__ around the early checks in the
logging calls, in order to minimize the runtime impact.
.gitignore
Makefile.am
TODO
src/journal/journal-send.c
src/journal/libsystemd-journal.sym
src/journal/test-journal-send.c [new file with mode: 0644]
src/log.h
src/systemd/sd-journal.h