- Timestamp:
- Apr 14, 2010, 12:24:01 PM (15 years ago)
- Location:
- branches/client-1.5/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/client-1.5/src/debug.c
r434 r436 34 34 char debugfile[_MAX_PATH +1] = {0}; 35 35 char logfilename[] = "ndpsmb.log"; 36 BOOL do_logging; 36 37 37 38 int debuglvl(int level) … … 40 41 } 41 42 43 BOOL writeLog() 44 { 45 return do_logging; 46 } 47 42 48 void debuglocal(int level, const char * fmt, ...) 43 49 { 44 50 FILE *f=NULL; 45 51 struct stat filestat; 52 do_logging = FALSE; 46 53 47 54 // if the file ndpsmb.dbg is around we write a logfile … … 71 78 } 72 79 // set the samba logging stuff 73 smbwrp_Logging();80 do_logging = TRUE; 74 81 } /* endif */ 75 82 -
branches/client-1.5/src/smbwrp.c
r434 r436 42 42 43 43 // init samba for debug messages 44 debug_init();45 44 setup_logging(slogfile, false); 45 lp_set_logfile(slogfile); 46 46 debug_parse_levels("9"); 47 47 } … … 171 171 } 172 172 173 if (writeLog()) 174 { 175 smbwrp_Logging(); 176 } 173 177 /* 174 178 if ((p=smbw_getshared("RESOLVE_ORDER"))) {
Note:
See TracChangeset
for help on using the changeset viewer.