summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tools
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-09-04 00:27:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:03 -0500
commit173d17ab2fdac0491941fc77e731c9617315b0be (patch)
tree4a757ba81bfe98dce2f7d4553b7522a817793800 /source4/lib/ldb/tools
parent22ced36791da7de99afb799deb30b934ccbd902e (diff)
downloadsamba-173d17ab2fdac0491941fc77e731c9617315b0be.tar.gz
samba-173d17ab2fdac0491941fc77e731c9617315b0be.tar.bz2
samba-173d17ab2fdac0491941fc77e731c9617315b0be.zip
r18022: Increment number of records converted, and print number of records skipped.
Andrew Bartlett (This used to be commit 6c11501ec3d8b95d5a80d5dbca745ae9e02d3304)
Diffstat (limited to 'source4/lib/ldb/tools')
-rw-r--r--source4/lib/ldb/tools/ad2oLschema.c4
1 files changed, 3 insertions, 1 deletions
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;
}