diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-11-28 10:26:48 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-11-28 10:26:48 -0500 |
commit | e72e57a66f80866f87602845c361c8f13ae54bd0 (patch) | |
tree | 244302c0a188d03f7713558fc241d7663e6492bc /src/shared/log.h | |
parent | 107530eaa336ae23f53a0f573901799564379106 (diff) |
log: rearrange log function naming
- Rename log_meta() → log_internal(), to follow naming scheme of most
other log functions that are usually invoked through macros, but never
directly.
- Rename log_info_object() to log_object_info(), simply because the
object should be before any other parameters, to follow OO-style
programming style.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/log.h')
-rw-r--r-- | src/shared/log.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/shared/log.h b/src/shared/log.h index 7d65aec055..3e317a5e94 100644 --- a/src/shared/log.h +++ b/src/shared/log.h @@ -52,18 +52,18 @@ void log_close_journal(void); void log_close_kmsg(void); void log_close_console(void); -int log_meta( +int log_internal( int level, int error, - const char*file, + const char *file, int line, const char *func, const char *format, ...) _printf_(6,7); -int log_metav( +int log_internalv( int level, int error, - const char*file, + const char *file, int line, const char *func, const char *format, @@ -92,7 +92,7 @@ noreturn void log_assert_failed_unreachable( #define log_full_errno(level, error, ...) \ do { \ if (log_get_max_level() >= (level)) \ - log_meta((level), error, __FILE__, __LINE__, __func__, __VA_ARGS__); \ + log_internal((level), error, __FILE__, __LINE__, __func__, __VA_ARGS__); \ } while (false) #define log_full(level, ...) log_full_errno(level, 0, __VA_ARGS__) |