r18022: Increment number of records converted, and print number of records skipped.
authorAndrew Bartlett <abartlet@samba.org>
Mon, 4 Sep 2006 00:27:37 +0000 (00:27 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:17:03 +0000 (14:17 -0500)
Andrew Bartlett
(This used to be commit 6c11501ec3d8b95d5a80d5dbca745ae9e02d3304)

source4/lib/ldb/tools/ad2oLschema.c

index 9bebcde7e0116574a87d6e3e57cfb5e5b1648dfd..af9431f0bf78b4d90ceacfdaddab616d64a8856b 100644 (file)
@@ -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;
 }