summaryrefslogtreecommitdiff
path: root/src/nm-logging.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-04-22 11:06:49 +0200
committerThomas Haller <thaller@redhat.com>2015-04-22 11:06:49 +0200
commit211d241ab081361341f4eeb05d7175993bde514c (patch)
tree0361660ecc49c8681de99bf207f593ff7371851d /src/nm-logging.h
parent2458ddf5e95ed74613c32780622e265eebb7e712 (diff)
downloadNetworkManager-211d241ab081361341f4eeb05d7175993bde514c.tar.gz
logging/trivial: rename _nm_log() to _nm_log_impl()
The actual logging implementation is not supposed to be called directly, because there are macros that capture the call site information __FILE__, __LINE__, and G_STRFUNC. Rename the function to make clear that this is the actual implementation.
Diffstat (limited to 'src/nm-logging.h')
-rw-r--r--src/nm-logging.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nm-logging.h b/src/nm-logging.h
index 0a0da20b0f..0d15f9fc7a 100644
--- a/src/nm-logging.h
+++ b/src/nm-logging.h
@@ -104,7 +104,7 @@ typedef enum { /*< skip >*/
#define nm_log(level, domain, ...) \
G_STMT_START { \
if (nm_logging_enabled ((level), (domain))) { \
- _nm_log (__FILE__, __LINE__, G_STRFUNC, (level), (domain), 0, ""__VA_ARGS__); \
+ _nm_log_impl (__FILE__, __LINE__, G_STRFUNC, (level), (domain), 0, ""__VA_ARGS__); \
} \
} G_STMT_END
@@ -135,14 +135,14 @@ typedef enum { /*< skip >*/
nm_log_ptr ((level), (domain), (self), __VA_ARGS__)
-void _nm_log (const char *file,
- guint line,
- const char *func,
- NMLogLevel level,
- NMLogDomain domain,
- int error,
- const char *fmt,
- ...) __attribute__((__format__ (__printf__, 7, 8)));
+void _nm_log_impl (const char *file,
+ guint line,
+ const char *func,
+ NMLogLevel level,
+ NMLogDomain domain,
+ int error,
+ const char *fmt,
+ ...) __attribute__((__format__ (__printf__, 7, 8)));
const char *nm_logging_level_to_string (void);
const char *nm_logging_domains_to_string (void);