X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/a3382e87b497c0977e0aa852da6cb238f06e1e18..42c7f0b4ea09d8971a19beeef743ec8981d4aacc:/src/src/lookups/lmdb.c diff --git a/src/src/lookups/lmdb.c b/src/src/lookups/lmdb.c index a6888d5a9..931ea5bbe 100644 --- a/src/src/lookups/lmdb.c +++ b/src/src/lookups/lmdb.c @@ -2,7 +2,7 @@ * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) University of Cambridge 2016 */ +/* Copyright (c) University of Cambridge 2016 - 2018*/ /* See the file NOTICE for conditions of use and distribution. */ #include "../exim.h" @@ -85,24 +85,24 @@ Lmdbstrct * lmdb_p = handle; dbkey.mv_data = CS keystring; dbkey.mv_size = length; -DEBUG(D_lookup) debug_printf("LMDB: lookup key: %s\n", (char *)keystring); +DEBUG(D_lookup) debug_printf_indent("LMDB: lookup key: %s\n", CS keystring); if ((ret = mdb_get(lmdb_p->txn, lmdb_p->db_dbi, &dbkey, &data)) == 0) { *result = string_copyn(US data.mv_data, data.mv_size); - DEBUG(D_lookup) debug_printf("LMDB: lookup result: %s\n", *result); + DEBUG(D_lookup) debug_printf_indent("LMDB: lookup result: %s\n", *result); return OK; } else if (ret == MDB_NOTFOUND) { *errmsg = US"LMDB: lookup, no data found"; - DEBUG(D_lookup) debug_printf("%s\n", *errmsg); + DEBUG(D_lookup) debug_printf_indent("%s\n", *errmsg); return FAIL; } else { *errmsg = string_sprintf("LMDB: lookup error: %s", mdb_strerror(ret)); - DEBUG(D_lookup) debug_printf("%s\n", *errmsg); + DEBUG(D_lookup) debug_printf_indent("%s\n", *errmsg); return DEFER; } }