From d018d7b42a7ae68a5a76c3874d285e9399fdce81 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Sat, 3 Jan 1998 03:35:13 +0000 Subject: added timestrings to become and unbecome domain/local master browser messages. (This used to be commit 5e7e3d18b51e1eb949bc793d3106a17d8e65a1af) --- source3/nmbd/nmbd_become_dmb.c | 13 +++++++------ source3/nmbd/nmbd_become_lmb.c | 12 ++++++------ 2 files changed, 13 insertions(+), 12 deletions(-) (limited to 'source3') 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)); } -- cgit