1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

lib:ldb-samba: Use debug level defines

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Jun 23 09:03:42 UTC 2021 on sn-devel-184
This commit is contained in:
Andreas Schneider 2021-06-22 09:03:06 +02:00 committed by Andreas Schneider
parent 1a2ca14321
commit 0fe2ae6608

View File

@ -55,16 +55,16 @@ static void ldb_wrap_debug(void *context, enum ldb_debug_level level,
int samba_level = -1;
switch (level) {
case LDB_DEBUG_FATAL:
samba_level = 0;
samba_level = DBGLVL_ERR;
break;
case LDB_DEBUG_ERROR:
samba_level = 1;
samba_level = DBGLVL_WARNING;
break;
case LDB_DEBUG_WARNING:
samba_level = 2;
samba_level = DBGLVL_NOTICE;
break;
case LDB_DEBUG_TRACE:
samba_level = 11;
samba_level = DBGLVL_DEBUG + 1;
break;
};