summaryrefslogtreecommitdiffstats
path: root/src/util/util.h
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2016-01-11 18:54:40 +0100
committerJakub Hrozek <jhrozek@redhat.com>2016-02-23 12:26:21 +0100
commit2a44a8c6683cfea218ee5329bcfad953dfeb6746 (patch)
tree79246ab8773975a3505e0d71b0795160b6f056f5 /src/util/util.h
parent42604cc8d11743febf5aa892cb3a7d3c32bfed48 (diff)
downloadsssd-2a44a8c6683cfea218ee5329bcfad953dfeb6746.tar.gz
sssd-2a44a8c6683cfea218ee5329bcfad953dfeb6746.tar.xz
sssd-2a44a8c6683cfea218ee5329bcfad953dfeb6746.zip
UTIL: Use prefix for debug function
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/util/util.h')
-rw-r--r--src/util/util.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/util/util.h b/src/util/util.h
index e1245bb0f..662d786ad 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -77,11 +77,11 @@ extern int debug_microseconds;
extern int debug_to_file;
extern int debug_to_stderr;
extern const char *debug_log_file;
-void debug_fn(const char *file,
- long line,
- const char *function,
- int level,
- const char *format, ...) SSS_ATTRIBUTE_PRINTF(5,6);
+void sss_debug_fn(const char *file,
+ long line,
+ const char *function,
+ int level,
+ const char *format, ...) SSS_ATTRIBUTE_PRINTF(5, 6);
int debug_convert_old_level(int old_level);
errno_t set_debug_file_from_fd(const int fd);
int get_fd_from_debug_file(void);
@@ -135,9 +135,9 @@ int get_fd_from_debug_file(void);
#define DEBUG(level, format, ...) do { \
int __debug_macro_level = level; \
if (DEBUG_IS_SET(__debug_macro_level)) { \
- debug_fn(__FILE__, __LINE__, __FUNCTION__, \
- __debug_macro_level, \
- format, ##__VA_ARGS__); \
+ sss_debug_fn(__FILE__, __LINE__, __FUNCTION__, \
+ __debug_macro_level, \
+ format, ##__VA_ARGS__); \
} \
} while (0)