Changeset 3402 for trunk/oscam-log.c
- Timestamp:
- 10/08/10 09:22:20 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam-log.c
r3394 r3402 48 48 { 49 49 #ifdef CS_ANTICASC 50 if( c lient[cs_idx].typ == 'a' && fpa ) {50 if( cur_client()->typ == 'a' && fpa ) { 51 51 switch_log(cfg->ac_logfile, &fpa, ac_init_log); 52 52 fprintf(fpa, "%s", txt); … … 116 116 sprintf(txt, "%6d ", getpid()); 117 117 if (cs_idx) { 118 switch (c lient[cs_idx].typ) {118 switch (cur_client()->typ) { 119 119 case 'r': 120 120 case 'p': 121 121 case 'm': 122 case 'c': sprintf(txt+7, "%c%02d ", c lient[cs_idx].typ, cs_idx);122 case 'c': sprintf(txt+7, "%c%02d ", cur_client()->typ, cs_idx); 123 123 break; 124 124 #ifdef CS_ANTICASC … … 153 153 154 154 #ifdef CS_ANTICASC 155 if (use_syslog && c lient[cs_idx].typ != 'a') // system-logfile155 if (use_syslog && cur_client()->typ != 'a') // system-logfile 156 156 #else 157 157 if (use_syslog) // system-logfile … … 191 191 if (client[i].monlvl<2) 192 192 { 193 if ((c lient[cs_idx].typ != 'c') && (client[cs_idx].typ != 'm'))193 if ((cur_client()->typ != 'c') && (client[cs_idx].typ != 'm')) 194 194 continue; 195 if (strcmp(c lient[cs_idx].usr, client[i].usr))195 if (strcmp(cur_client()->usr, client[i].usr)) 196 196 continue; 197 197 } … … 225 225 void cs_debug(const char *fmt,...) 226 226 { 227 // cs_log("cs_debug called, cs_ptyp=%d, cs_dblevel=%d, %d", cs_ptyp, cs_dblevel ,c lient[cs_idx].cs_ptyp & cs_dblevel);228 char log_txt[512]; 229 if (cs_dblevel & c lient[cs_idx].cs_ptyp)227 // cs_log("cs_debug called, cs_ptyp=%d, cs_dblevel=%d, %d", cs_ptyp, cs_dblevel ,cur_client()->cs_ptyp & cs_dblevel); 228 char log_txt[512]; 229 if (cs_dblevel & cur_client()->cs_ptyp) 230 230 { 231 231 get_log_header(1, log_txt); … … 255 255 { 256 256 char log_txt[512]; 257 if (cs_dblevel & c lient[cs_idx].cs_ptyp)257 if (cs_dblevel & cur_client()->cs_ptyp) 258 258 { 259 259 va_list params; … … 300 300 301 301 //if (((cs_ptyp & cs_dblevel)==cs_ptyp) && (fmt)) 302 if ((c lient[cs_idx].cs_ptyp & cs_dblevel) && (fmt))302 if ((cur_client()->cs_ptyp & cs_dblevel) && (fmt)) 303 303 { 304 304 get_log_header(1, log_txt); … … 310 310 //printf("LOG: %s\n", txt); fflush(stdout); 311 311 } 312 //if (((c lient[cs_idx].cs_ptyp | D_DUMP) & cs_dblevel)==(cs_ptyp | D_DUMP))313 if (c lient[cs_idx].cs_ptyp & cs_dblevel)312 //if (((cur_client()->cs_ptyp | D_DUMP) & cs_dblevel)==(cs_ptyp | D_DUMP)) 313 if (cur_client()->cs_ptyp & cs_dblevel) 314 314 { 315 315 for (i=0; i<n; i+=16)
Note:
See TracChangeset
for help on using the changeset viewer.