From b070e7f3c9ed680c821bd89d42506695f2438506 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 2 Apr 2012 19:24:30 +0200 Subject: 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. --- src/journal/libsystemd-journal.sym | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/journal/libsystemd-journal.sym') diff --git a/src/journal/libsystemd-journal.sym b/src/journal/libsystemd-journal.sym index 7653880e8f..cd434aea26 100644 --- a/src/journal/libsystemd-journal.sym +++ b/src/journal/libsystemd-journal.sym @@ -43,3 +43,11 @@ global: local: *; }; + +LIBSYSTEMD_JOURNAL_45 { +global: + sd_journal_print_with_location; + sd_journal_printv_with_location; + sd_journal_send_with_location; + sd_journal_sendv_with_location; +} LIBSYSTEMD_JOURNAL_38; -- cgit v1.2.3-54-g00ecf