summaryrefslogtreecommitdiff
path: root/source3/nmbd
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>1998-01-03 03:35:13 +0000
committerHerb Lewis <herb@samba.org>1998-01-03 03:35:13 +0000
commitd018d7b42a7ae68a5a76c3874d285e9399fdce81 (patch)
treef3339b4531dcbb54b51c2defa22b081ffd3f4b03 /source3/nmbd
parent19d7833b7a853dd26138814221062fd1041e8f2e (diff)
downloadsamba-d018d7b42a7ae68a5a76c3874d285e9399fdce81.tar.gz
samba-d018d7b42a7ae68a5a76c3874d285e9399fdce81.tar.bz2
samba-d018d7b42a7ae68a5a76c3874d285e9399fdce81.zip
added timestrings to become and unbecome domain/local master browser
messages. (This used to be commit 5e7e3d18b51e1eb949bc793d3106a17d8e65a1af)
Diffstat (limited to 'source3/nmbd')
-rw-r--r--source3/nmbd/nmbd_become_dmb.c13
-rw-r--r--source3/nmbd/nmbd_become_lmb.c12
2 files changed, 13 insertions, 12 deletions
diff --git a/source3/nmbd/nmbd_become_dmb.c b/source3/nmbd/nmbd_become_dmb.c
index 37fceb9bf1..d8788b7314 100644
--- a/source3/nmbd/nmbd_become_dmb.c
+++ b/source3/nmbd/nmbd_become_dmb.c
@@ -81,8 +81,8 @@ in workgroup %s on subnet %s\n",
bzero((char *)&work->dmb_name, sizeof(work->dmb_name));
putip((char *)&work->dmb_addr, &ipzero);
- DEBUG(0,("\n ***** Samba server %s has stopped being a domain master browser \
-for workgroup %s on subnet %s *****\n\n", myname, work->work_group, subrec->subnet_name));
+ DEBUG(0,("\n%s ***** Samba server %s has stopped being a domain master browser \
+for workgroup %s on subnet %s *****\n\n", timestring(), myname, work->work_group, subrec->subnet_name));
}
@@ -214,8 +214,9 @@ in workgroup %s on subnet %s\n",
/* Tell the namelist writer to write out a change. */
subrec->work_changed = True;
- DEBUG(0,("\n ***** Samba server %s is now a domain master browser \
-for workgroup %s on subnet %s *****\n\n", myname, work->work_group, subrec->subnet_name));
+ DEBUG(0,("\n%s ***** Samba server %s is now a domain master browser for \
+workgroup %s on subnet %s *****\n\n", timestring(),myname, work->work_group,
+subrec->subnet_name));
if(subrec == unicast_subnet)
{
@@ -312,9 +313,9 @@ Continuing with domain master code.\n",
}
else
{
- DEBUG(0,("become_domain_master_query_success: There is already a domain \
+ DEBUG(0,("%s become_domain_master_query_success: There is already a domain \
master browser at IP %s for workgroup %s registered on subnet %s.\n",
- inet_ntoa(ip), nmbname->name, subrec->subnet_name));
+ timestring(), inet_ntoa(ip), nmbname->name, subrec->subnet_name));
}
}
diff --git a/source3/nmbd/nmbd_become_lmb.c b/source3/nmbd/nmbd_become_lmb.c
index 6dcd61d76c..2d9f2cce55 100644
--- a/source3/nmbd/nmbd_become_lmb.c
+++ b/source3/nmbd/nmbd_become_lmb.c
@@ -145,8 +145,8 @@ void unbecome_local_master_success(struct subnet_record *subrec,
/* Now reset the workgroup and server state. */
reset_workgroup_state( subrec, released_name->name );
- DEBUG(0,("\n***** Samba name server %s has stopped being a local master browser for workgroup %s \
-on subnet %s *****\n\n", myname, released_name->name, subrec->subnet_name));
+ DEBUG(0,("\n%s ***** Samba name server %s has stopped being a local master browser for workgroup %s \
+on subnet %s *****\n\n", timestring(), myname, released_name->name, subrec->subnet_name));
}
@@ -170,8 +170,8 @@ Removing from namelist anyway.\n", namestr(fail_name)));
/* Now reset the workgroup and server state. */
reset_workgroup_state( subrec, fail_name->name );
- DEBUG(0,("\n***** Samba name server %s has stopped being a local master browser for workgroup %s \
-on subnet %s *****\n\n", myname, fail_name->name, subrec->subnet_name));
+ DEBUG(0,("\n%s ***** Samba name server %s has stopped being a local master browser for workgroup %s \
+on subnet %s *****\n\n", timestring(), myname, fail_name->name, subrec->subnet_name));
}
@@ -365,8 +365,8 @@ on subnet %s\n", work->work_group, subrec->subnet_name));
master browser as soon as possible that we are a local master browser. */
reset_announce_timer();
- DEBUG(0,("\n***** Samba name server %s is now a local master browser for workgroup %s \
-on subnet %s *****\n\n", myname, work->work_group, subrec->subnet_name));
+ DEBUG(0,("\n%s ***** Samba name server %s is now a local master browser for workgroup %s \
+on subnet %s *****\n\n", timestring(), myname, work->work_group, subrec->subnet_name));
}