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.c | |
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.c')
-rw-r--r-- | src/shared/log.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/log.c b/src/shared/log.c index 6ed18e36da..61fe00fc38 100644 --- a/src/shared/log.c +++ b/src/shared/log.c @@ -465,7 +465,7 @@ static int log_dispatch( return r; } -int log_metav( +int log_internalv( int level, int error, const char*file, @@ -486,7 +486,7 @@ int log_metav( return log_dispatch(level, error, file, line, func, NULL, NULL, buffer); } -int log_meta( +int log_internal( int level, int error, const char*file, @@ -498,7 +498,7 @@ int log_meta( va_list ap; va_start(ap, format); - r = log_metav(level, error, file, line, func, format, ap); + r = log_internalv(level, error, file, line, func, format, ap); va_end(ap); return r; @@ -537,7 +537,7 @@ noreturn void log_assert_failed_unreachable(const char *text, const char *file, } int log_oom_internal(const char *file, int line, const char *func) { - log_meta(LOG_ERR, ENOMEM, file, line, func, "Out of memory."); + log_internal(LOG_ERR, ENOMEM, file, line, func, "Out of memory."); return -ENOMEM; } |