From f8279045964cd0140be23b436ead1169096a8d18 Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Tue, 3 Aug 2010 04:26:57 +0300 Subject: s4-schema: More verbose error log when subClassOf is not found in schema Error message show failing classSchema object but not the specific value for the failure, which makes diagnostics by log files really hard. --- source4/dsdb/schema/schema_inferiors.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/dsdb/schema/schema_inferiors.c b/source4/dsdb/schema/schema_inferiors.c index e8c4baa21d..d2c134ea9e 100644 --- a/source4/dsdb/schema/schema_inferiors.c +++ b/source4/dsdb/schema/schema_inferiors.c @@ -163,7 +163,9 @@ static int schema_create_subclasses(const struct dsdb_schema *schema) struct dsdb_class *schema_class2 = discard_const_p(struct dsdb_class, dsdb_class_by_lDAPDisplayName(schema, schema_class->subClassOf)); if (schema_class2 == NULL) { - DEBUG(0,("ERROR: no subClassOf for '%s'\n", schema_class->lDAPDisplayName)); + DEBUG(0,("ERROR: no subClassOf '%s' for '%s'\n", + schema_class->subClassOf, + schema_class->lDAPDisplayName)); return LDB_ERR_OPERATIONS_ERROR; } if (schema_class2 && schema_class != schema_class2) { -- cgit