From: Andreas Schneider Date: Tue, 14 Feb 2023 15:30:36 +0000 (+0100) Subject: lib:ldb: Add the location to ldb_kv_parse_data_unpack() debug output X-Git-Tag: talloc-2.4.1~1612 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=240c031e7fa65aecb8276b5385c27651a89afa8d;p=thirdparty%2Fsamba.git lib:ldb: Add the location to ldb_kv_parse_data_unpack() debug output Signed-off-by: Andreas Schneider Reviewed-by: Douglas Bagnall --- diff --git a/lib/ldb/ldb_key_value/ldb_kv_search.c b/lib/ldb/ldb_key_value/ldb_kv_search.c index 46031b99c16..964e1c1aba0 100644 --- a/lib/ldb/ldb_key_value/ldb_kv_search.c +++ b/lib/ldb/ldb_key_value/ldb_kv_search.c @@ -158,7 +158,8 @@ static int ldb_kv_parse_data_unpack(struct ldb_val key, talloc_free(data_parse.data); } - ldb_debug(ldb, LDB_DEBUG_ERROR, "Invalid data for index %*.*s\n", + ldb_debug(ldb, LDB_DEBUG_ERROR, + __location__ ": Invalid data for index %*.*s\n", (int)key.length, (int)key.length, key.data); return LDB_ERR_OPERATIONS_ERROR; }