lib/util: fix call to dbghdrclass() for DEBUGC()
commitbb0ffbf38cb1955c9e400003add680eabcf706a6
authorStefan Metzmacher <metze@samba.org>
Fri, 26 Apr 2019 11:21:15 +0000 (26 13:21 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 28 May 2019 07:16:25 +0000 (28 07:16 +0000)
tree5520d8ed2f4dfae33f4cd4e329901424979b20a1
parente09053faf457f69ad9b5e6a34be43c947503575f
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>
lib/util/debug.h