diff options
author | Volker Lendecke <vl@samba.org> | 2014-07-29 12:11:54 +0000 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-07-31 18:49:46 +0200 |
commit | 15813561cce814adb6f94753dc6dda108be1eb77 (patch) | |
tree | 74fd8bb61080ff63b729ca7e07de99ebfa63aedd /source3/nmbd/nmbd_browserdb.c | |
parent | 3349c566a5346ba0a3187bd424cb48fc28c57922 (diff) | |
download | samba-15813561cce814adb6f94753dc6dda108be1eb77.tar.gz samba-15813561cce814adb6f94753dc6dda108be1eb77.tar.xz samba-15813561cce814adb6f94753dc6dda108be1eb77.zip |
nmbd: Call DEBUGADD instead of Debug1
These were the only external callers of Debug1. To be honest, I don't
really care if these debug messages now look a bit differently :-)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/nmbd/nmbd_browserdb.c')
-rw-r--r-- | source3/nmbd/nmbd_browserdb.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/source3/nmbd/nmbd_browserdb.c b/source3/nmbd/nmbd_browserdb.c index bd027239ec..b36f5c7fc4 100644 --- a/source3/nmbd/nmbd_browserdb.c +++ b/source3/nmbd/nmbd_browserdb.c @@ -122,12 +122,10 @@ struct browse_cache_record *create_browser_in_lmb_cache( const char *work_name, DLIST_ADD_END(lmb_browserlist, browc, struct browse_cache_record *); - if( DEBUGLVL( 3 ) ) { - Debug1( "nmbd_browserdb:create_browser_in_lmb_cache()\n" ); - Debug1( " Added lmb cache entry for workgroup %s ", browc->work_group ); - Debug1( "name %s IP %s ", browc->lmb_name, inet_ntoa(ip) ); - Debug1( "ttl %d\n", (int)browc->death_time ); - } + DEBUG(3, ("nmbd_browserdb:create_browser_in_lmb_cache()\n")); + DEBUGADD(3, (" Added lmb cache entry for workgroup %s name %s IP %s " + "ttl %d\n", browc->work_group, browc->lmb_name, + inet_ntoa(ip), (int)browc->death_time)); return( browc ); } @@ -172,10 +170,9 @@ void expire_lmb_browsers( time_t t ) nextbrowc = browc->next; if( browc->death_time < t ) { - if( DEBUGLVL( 3 ) ) { - Debug1( "nmbd_browserdb:expire_lmb_browsers()\n" ); - Debug1( " Removing timed out lmb entry %s\n", browc->lmb_name ); - } + DEBUG(3, ("nmbd_browserdb:expire_lmb_browsers()\n")); + DEBUGADD(3, (" Removing timed out lmb entry %s\n", + browc->lmb_name)); remove_lmb_browser_entry( browc ); } } |