diff options
author | Stefan Metzmacher <metze@samba.org> | 2019-04-26 13:21:15 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-08-08 07:30:10 +0000 |
commit | fdec94ba7c4da37d3ee7d1507cd41ed83e31291a (patch) | |
tree | 54887916f11a2bff9b921757cfe174c9427bfc68 | |
parent | b56e010af12908e4291231172eb67306e14de9a6 (diff) | |
download | samba-fdec94ba7c4da37d3ee7d1507cd41ed83e31291a.tar.gz |
lib/util: fix call to dbghdrclass() for DEBUGC()
dbghdrclass() sets the global 'current_msg_class' and for that
DEBUGC() should pass the given dbgc_class instead of the per file
DBGC_CLASS.
This is important with the new per class logfile with:
log level = 1 dsdb_audit:10@/var/log/samba/log.dsdb_audit
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13915
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit bb0ffbf38cb1955c9e400003add680eabcf706a6)
-rw-r--r-- | lib/util/debug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/debug.h b/lib/util/debug.h index e6f54a7657f..bd85067dd4b 100644 --- a/lib/util/debug.h +++ b/lib/util/debug.h @@ -201,7 +201,7 @@ void debuglevel_set_class(size_t idx, int level); #define DEBUGC( dbgc_class, level, body ) \ (void)( ((level) <= MAX_DEBUG_LEVEL) && \ unlikely(debuglevel_get_class(dbgc_class) >= (level)) \ - && (dbghdrclass( level, DBGC_CLASS, __location__, __FUNCTION__ )) \ + && (dbghdrclass( level, dbgc_class, __location__, __FUNCTION__ )) \ && (dbgtext body) ) #define DEBUGADD( level, body ) \ |