Changeset 445 for branches/client-1.6/src/debug.c
- Timestamp:
- Apr 22, 2010, 7:18:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/client-1.6/src/debug.c
r441 r445 29 29 #include <sys/time.h> 30 30 #include <sys/stat.h> 31 #include "version.h" 31 32 32 33 int debuglevel = 9; // we set it to 9, so we get all messages … … 35 36 char logfilename[] = "log.ndpsmb"; 36 37 BOOL do_logging = FALSE; 38 BOOL firstLogLine = TRUE; 37 39 38 40 int debuglvl(int level) … … 101 103 f = stdout; 102 104 } 105 106 // in the first log line we write our version of the client 107 if (firstLogLine) 108 { 109 fprintf(f, "samba client %s build %s\n", VERSION, BUILD); 110 firstLogLine = FALSE; 111 } 112 103 113 gettimeofday(&tv, NULL); 104 114 strftime(buf,sizeof(buf)-1,"%Y/%m/%d %H:%M:%S", localtime((time_t *)&tv.tv_sec));
Note:
See TracChangeset
for help on using the changeset viewer.