diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-04-02 19:24:30 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-04-02 19:29:48 +0200 |
commit | b070e7f3c9ed680c821bd89d42506695f2438506 (patch) | |
tree | 5bef4c80fea167fe8ada2ca80927fcfe5e979eaf /src/log.h | |
parent | 1fa80181aecd4b9db513f16c136157a4546686d3 (diff) |
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.
Diffstat (limited to 'src/log.h')
-rw-r--r-- | src/log.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -93,7 +93,7 @@ int log_dump_internal( const char *func, char *buffer); -#define log_full(level, ...) log_meta(level, __FILE__, __LINE__, __func__, __VA_ARGS__) +#define log_full(level, ...) log_meta(level, __FILE__, __LINE__, __func__, __VA_ARGS__) #define log_debug(...) log_meta(LOG_DEBUG, __FILE__, __LINE__, __func__, __VA_ARGS__) #define log_info(...) log_meta(LOG_INFO, __FILE__, __LINE__, __func__, __VA_ARGS__) |