summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-11-23 12:29:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:40 -0500
commit4e84ae3d3fc4cb14869eb46651c95b2d36fa9ce5 (patch)
treed8d1896319e80d97a74724e54b711980885a184c
parentaf10a481742cafaaa04c615dfdde0bae73228e96 (diff)
downloadsamba-4e84ae3d3fc4cb14869eb46651c95b2d36fa9ce5.tar.gz
samba-4e84ae3d3fc4cb14869eb46651c95b2d36fa9ce5.tar.bz2
samba-4e84ae3d3fc4cb14869eb46651c95b2d36fa9ce5.zip
r11881: fix debug messages
metze (This used to be commit 71293f41a7c1e281bde36e7b5ffbf6b3b108d626)
-rw-r--r--source4/wrepl_server/wrepl_apply_records.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/source4/wrepl_server/wrepl_apply_records.c b/source4/wrepl_server/wrepl_apply_records.c
index acb981124d..6e395b5e91 100644
--- a/source4/wrepl_server/wrepl_apply_records.c
+++ b/source4/wrepl_server/wrepl_apply_records.c
@@ -588,7 +588,7 @@ static NTSTATUS r_do_add(struct wreplsrv_partner *partner,
return NT_STATUS_FOOBAR;
}
- DEBUG(0,("added record %s\n",
+ DEBUG(4,("added record %s\n",
nbt_name_string(mem_ctx, &replica->name)));
return NT_STATUS_OK;
@@ -631,7 +631,7 @@ static NTSTATUS r_do_replace(struct wreplsrv_partner *partner,
return NT_STATUS_FOOBAR;
}
- DEBUG(0,("replaced record %s\n",
+ DEBUG(4,("replaced record %s\n",
nbt_name_string(mem_ctx, &replica->name)));
return NT_STATUS_OK;
@@ -643,7 +643,7 @@ static NTSTATUS r_not_replace(struct wreplsrv_partner *partner,
struct wrepl_wins_owner *owner,
struct wrepl_name *replica)
{
- DEBUG(0,("TODO: not replace record %s\n",
+ DEBUG(4,("not replace record %s\n",
nbt_name_string(mem_ctx, &replica->name)));
return NT_STATUS_OK;
}
@@ -709,16 +709,11 @@ static NTSTATUS wreplsrv_apply_one_record(struct wreplsrv_partner *partner,
BOOL replica_vs_replica = False;
BOOL local_vs_replica = False;
- DEBUG(0,("apply record %s: from: %s %llu\n",
- nbt_name_string(mem_ctx, &replica->name), owner->address, replica->version_id));
-
status = winsdb_lookup(partner->service->wins_db,
&replica->name, mem_ctx, &rec);
if (NT_STATUS_EQUAL(NT_STATUS_OBJECT_NAME_NOT_FOUND, status)) {
return r_do_add(partner, mem_ctx, owner, replica);
}
- DEBUG(0,("apply record %s: s1: %s\n",
- nbt_name_string(mem_ctx, &replica->name), nt_errstr(status)));
NT_STATUS_NOT_OK_RETURN(status);
if (strcmp(rec->wins_owner, WINSDB_OWNER_LOCAL)==0) {
@@ -729,9 +724,6 @@ static NTSTATUS wreplsrv_apply_one_record(struct wreplsrv_partner *partner,
replica_vs_replica = True;
}
- DEBUG(0,("apply record %s: s2: lvr:%d so:%d rvr:%d\n",
- nbt_name_string(mem_ctx, &replica->name), local_vs_replica, same_owner, replica_vs_replica));
-
if (rec->is_static && !same_owner) {
/* TODO: this is just assumed and needs to be tested more */
action = R_NOT_REPLACE;
@@ -769,7 +761,7 @@ static NTSTATUS wreplsrv_apply_one_record(struct wreplsrv_partner *partner,
}
}
- DEBUG(0,("apply record %s: %s\n",
+ DEBUG(4,("apply record %s: %s\n",
nbt_name_string(mem_ctx, &replica->name), _R_ACTION_enum_string(action)));
switch (action) {
@@ -794,8 +786,7 @@ NTSTATUS wreplsrv_apply_records(struct wreplsrv_partner *partner, struct wreplsr
NTSTATUS status;
uint32_t i;
- /* TODO: ! */
- DEBUG(0,("TODO: apply records count[%u]:owner[%s]:min[%llu]:max[%llu]:partner[%s]\n",
+ DEBUG(4,("apply records count[%u]:owner[%s]:min[%llu]:max[%llu]:partner[%s]\n",
names_io->out.num_names, names_io->in.owner.address,
names_io->in.owner.min_version, names_io->in.owner.max_version,
partner->address));