Changeset 1751


Ignore:
Timestamp:
Mar 1, 2010, 10:06:53 AM (10 years ago)
Author:
merek
Message:

Replace cs_log with fprintf as cs_log is not available becase cs_init_log was called later

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/oscam-config.c

    r1745 r1751  
    503503
    504504    if (token[0] != '#')
    505         cs_log("Warning: keyword '%s' in global section not recognized", token);
     505        fprintf(stderr, "Warning: keyword '%s' in global section not recognized\n", token);
    506506}
    507507
     
    566566
    567567    if (token[0] != '#')
    568         cs_log("Warning: keyword '%s' in anticascading section not recognized",token);
     568        fprintf(stderr, "Warning: keyword '%s' in anticascading section not recognized\n",token);
    569569}
    570570#endif
     
    633633
    634634    if (token[0] != '#')
    635         cs_log("Warning: keyword '%s' in monitor section not recognized",token);
     635        fprintf(stderr, "Warning: keyword '%s' in monitor section not recognized\n",token);
    636636}
    637637
     
    722722
    723723    if (token[0] != '#')
    724         cs_log("Warning: keyword '%s' in webif section not recognized",token);
     724        fprintf(stderr, "Warning: keyword '%s' in webif section not recognized\n",token);
    725725}
    726726#endif
     
    773773
    774774    if (token[0] != '#')
    775         cs_log("Warning: keyword '%s' in camd33 section not recognized",token);
     775        fprintf(stderr "Warning: keyword '%s' in camd33 section not recognized\n",token);
    776776}
    777777
     
    809809
    810810    if (token[0] != '#')
    811         cs_log("Warning: keyword '%s' in camd35 section not recognized", token);
     811        fprintf(stderr, "Warning: keyword '%s' in camd35 section not recognized\n", token);
    812812}
    813813
     
    845845
    846846    if (token[0] != '#')
    847         cs_log("Warning: keyword '%s' in camd35 tcp section not recognized", token);
     847        fprintf(stderr, "Warning: keyword '%s' in camd35 tcp section not recognized\n", token);
    848848}
    849849
     
    899899
    900900    if (token[0] != '#')
    901         cs_log("Warning: keyword '%s' in newcamd section not recognized", token);
     901        fprintf(stderr, "Warning: keyword '%s' in newcamd section not recognized\n", token);
    902902}
    903903
     
    946946
    947947    if (token[0] != '#')
    948         cs_log("Warning: keyword '%s' in cccam section not recognized",token);
     948        fprintf(stderr, "Warning: keyword '%s' in cccam section not recognized\n",token);
    949949}
    950950
     
    987987
    988988    if (token[0] != '#')
    989         cs_log("Warning: keyword '%s' in radegast section not recognized", token);
     989        fprintf(stderr, "Warning: keyword '%s' in radegast section not recognized\n", token);
    990990}
    991991
     
    10011001    }
    10021002    if (token[0] != '#')
    1003         cs_log("Warning: keyword '%s' in serial section not recognized", token);
     1003        fprintf(stderr, "Warning: keyword '%s' in serial section not recognized\n", token);
    10041004}
    10051005
     
    10461046
    10471047    if (token[0] != '#')
    1048         cs_log("Warning: keyword '%s' in gbox section not recognized",token);
     1048        fprintf(stderr, "Warning: keyword '%s' in gbox section not recognized",token);
    10491049}
    10501050#endif
     
    10841084
    10851085    if (token[0] != '#')
    1086         cs_log("Warning: keyword '%s' in dvbapi section not recognized\n",token);
     1086        fprintf(stderr, "Warning: keyword '%s' in dvbapi section not recognized\n",token);
    10871087}
    10881088#endif
     
    11051105        case TAG_GBOX    : chk_t_gbox(token, value); break;
    11061106#else
    1107         case TAG_GBOX    : cs_log("Warning: OSCam compiled without gbox support."); break;
     1107        case TAG_GBOX    : fprintf(stderr, "Warning: OSCam compiled without gbox support.\n"); break;
    11081108#endif
    11091109
     
    11121112        case TAG_DVBAPI  : chk_t_dvbapi(token, value); break;
    11131113#else
    1114         case TAG_DVBAPI  : cs_log("Warning: OSCam compiled without DVB API support."); break;
     1114        case TAG_DVBAPI  : fprintf(stderr, "Warning: OSCam compiled without DVB API support.\n"); break;
    11151115#endif
    11161116
     
    11191119        case TAG_WEBIF   : chk_t_webif(token, value); break;
    11201120#else
    1121         case TAG_WEBIF   : cs_log("Warning: OSCam compiled without Webinterface support."); break;
     1121        case TAG_WEBIF   : fprintf(stderr, "Warning: OSCam compiled without Webinterface support.\n"); break;
    11221122#endif
    11231123
     
    11261126        case TAG_ANTICASC: chk_t_ac(token, value); break;
    11271127#else
    1128         case TAG_ANTICASC: cs_log("Warning: OSCam compiled without anticascading support."); break;
     1128        case TAG_ANTICASC: fprintf(stderr, "Warning: OSCam compiled without anticascading support.\n"); break;
    11291129#endif
    11301130
     
    14781478
    14791479    if (token[0] != '#')
    1480         cs_log("Warning: keyword '%s' in account section not recognized",token);
     1480        fprintf(stderr, "Warning: keyword '%s' in account section not recognized\n",token);
    14811481}
    14821482
     
    20192019  if (!strcmp(token, "srvid")) { chk_entry4sidtab(value, sidtab, 2); return; }
    20202020  if (token[0] != '#')
    2021     cs_log("Warning: keyword '%s' in sidtab section not recognized",token);
     2021    fprintf(stderr, "Warning: keyword '%s' in sidtab section not recognized\n",token);
    20222022}
    20232023
     
    24952495        }
    24962496
    2497         cs_log("WARNING: value '%s' in protocol-line not recognized, assuming MOUSE",value);
     2497        fprintf(stderr, "WARNING: value '%s' in protocol-line not recognized, assuming MOUSE\n",value);
    24982498        rdr->typ = R_MOUSE;
    24992499        return;
     
    26642664
    26652665    if (token[0] != '#')
    2666         cs_log("Warning: keyword '%s' in reader section not recognized",token);
     2666        fprintf(stderr, "Warning: keyword '%s' in reader section not recognized\n",token);
    26672667}
    26682668
Note: See TracChangeset for help on using the changeset viewer.