nmbd: Call DEBUGADD instead of Debug1
authorVolker Lendecke <vl@samba.org>
Tue, 29 Jul 2014 12:11:54 +0000 (12:11 +0000)
committerMichael Adam <obnox@samba.org>
Thu, 31 Jul 2014 16:49:46 +0000 (18:49 +0200)
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>
source3/nmbd/nmbd_browserdb.c

index bd027239eca00cf9be06cadf1fff9835380b50f9..b36f5c7fc42b9943ca3f086724d47e7c57df924d 100644 (file)
@@ -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 );
                }
        }