From 173d17ab2fdac0491941fc77e731c9617315b0be Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 4 Sep 2006 00:27:37 +0000 Subject: r18022: Increment number of records converted, and print number of records skipped. Andrew Bartlett (This used to be commit 6c11501ec3d8b95d5a80d5dbca745ae9e02d3304) --- source4/lib/ldb/tools/ad2oLschema.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/lib/ldb') diff --git a/source4/lib/ldb/tools/ad2oLschema.c b/source4/lib/ldb/tools/ad2oLschema.c index 9bebcde7e0..af9431f0bf 100644 --- a/source4/lib/ldb/tools/ad2oLschema.c +++ b/source4/lib/ldb/tools/ad2oLschema.c @@ -409,6 +409,7 @@ static struct schema_conv process_convert(struct ldb_context *ldb, enum convert_ fprintf(out, "%s\n", schema_entry); break; } + ret.count++; } ldb_ret = fetch_objectclass_schema(ldb, schemadn, mem_ctx, &objectclasses_res); @@ -566,6 +567,7 @@ static struct schema_conv process_convert(struct ldb_context *ldb, enum convert_ fprintf(out, "%s\n", schema_entry); break; } + ret.count++; } return ret; @@ -620,7 +622,7 @@ static struct schema_conv process_convert(struct ldb_context *ldb, enum convert_ fclose(in); fclose(out); - printf("Converted %d records with %d failures\n", ret.count, ret.failures); + printf("Converted %d records (skipped %d) with %d failures\n", ret.count, ret.skipped, ret.failures); return 0; } -- cgit