Changeset 4934 for trunk/oscam.c
- Timestamp:
- 04/06/11 00:14:04 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam.c
r4905 r4934 646 646 snprintf(targetfile, 255, "%s%s", get_tmp_dir(), "/oscam.version"); 647 647 if (unlink(targetfile) < 0) 648 cs_log("cannot remove oscam version file %s errno=(%d)", targetfile, errno);648 cs_log("cannot remove oscam version file %s (errno=%d %s)", targetfile, errno, strerror(errno)); 649 649 #endif 650 650 #ifdef COOL … … 1647 1647 /* maybe this fails because the subdir does not exist. Is there a common function to create it? 1648 1648 for the moment do not print to log on every ecm 1649 cs_log(""error opening cw logfile for writing: %s (errno %d)", buf, errno); */1649 cs_log(""error opening cw logfile for writing: %s (errno=%d %s)", buf, errno, strerror(errno)); */ 1650 1650 return; 1651 1651 } … … 1778 1778 if (!cl->ecmtask) 1779 1779 { 1780 cs_log("Cannot allocate memory (errno=%d )", errno);1780 cs_log("Cannot allocate memory (errno=%d %s)", errno, strerror(errno)); 1781 1781 n=(-2); 1782 1782 } … … 3521 3521 if (!(f=fopen(ledfile, "w"))){ 3522 3522 // FIXME: sometimes cs_log was not available when calling cs_switch_led -> signal 11 3523 //cs_log("Cannot open file \"%s\" (errno=%d )", ledfile, errno);3523 //cs_log("Cannot open file \"%s\" (errno=%d %s)", ledfile, errno, strerror(errno)); 3524 3524 return; 3525 3525 }
Note:
See TracChangeset
for help on using the changeset viewer.