From af5649d5f87e0c8b85eb950a253a4e65cca8ccd0 Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Mon, 6 Dec 2010 00:17:43 +0200 Subject: s4-repl_meta_data: Print function name when we can't find attribute in Schema cache Same error message is printed by linked_attributes.c module and it was really hard to tell where the error occurred Autobuild-User: Kamen Mazdrashki Autobuild-Date: Mon Dec 6 00:05:59 CET 2010 on sn-devel-104 --- source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/dsdb/samdb') diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index 9662b21318..2bdb7af23f 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -2081,7 +2081,8 @@ static int replmd_modify_handle_linked_attribs(struct ldb_module *module, = dsdb_attribute_by_lDAPDisplayName(schema, el->name); if (!schema_attr) { ldb_asprintf_errstring(ldb, - "attribute %s is not a valid attribute in schema", el->name); + "%s: attribute %s is not a valid attribute in schema", + __FUNCTION__, el->name); return LDB_ERR_OBJECT_CLASS_VIOLATION; } if (schema_attr->linkID == 0) { -- cgit