diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2016-03-09 17:09:06 +0100 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2016-03-23 12:07:10 +0100 |
commit | 7c30eade4ae794ed809845f2ef70dda849b6e7c9 (patch) | |
tree | 1763f32b2ef6cc37c0c5e346240c08371c8501b7 /src/util/debug.h | |
parent | 558ec7d717735bb16c210c675c2cc5bee1da4576 (diff) | |
download | sssd-7c30eade4ae794ed809845f2ef70dda849b6e7c9.tar.gz sssd-7c30eade4ae794ed809845f2ef70dda849b6e7c9.tar.xz sssd-7c30eade4ae794ed809845f2ef70dda849b6e7c9.zip |
UTIL: Allow to append new line in sss_vdebug_fn
libldb is not consistent with appending line feed
in debug messages. AS a result of this two messages can be on the same line
in sssd log files. Which makes analyzing log files more difficult.
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/util/debug.h')
-rw-r--r-- | src/util/debug.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/debug.h b/src/util/debug.h index 667021ba1..2a1bd4ffd 100644 --- a/src/util/debug.h +++ b/src/util/debug.h @@ -29,6 +29,8 @@ #define SSS_ATTRIBUTE_PRINTF(a1, a2) #endif +#define APPEND_LINE_FEED 0x1 + extern const char *debug_prg_name; extern int debug_level; extern int debug_timestamps; @@ -40,6 +42,7 @@ void sss_vdebug_fn(const char *file, long line, const char *function, int level, + int flags, const char *format, va_list ap); void sss_debug_fn(const char *file, |