]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:ldb: Add the location to ldb_kv_parse_data_unpack() debug output
authorAndreas Schneider <asn@samba.org>
Tue, 14 Feb 2023 15:30:36 +0000 (16:30 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 15 Feb 2023 08:12:35 +0000 (08:12 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/ldb/ldb_key_value/ldb_kv_search.c

index 46031b99c16c9410d85ed622de01f670801ccdce..964e1c1aba0b03a0f30140cffd01d63e3bec375a 100644 (file)
@@ -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;
        }