Ignore:
Timestamp:
09/04/16 09:41:16 (7 years ago)
Author:
Stephan
Message:

shorter epgscan log text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/epgscan.h

    r32030 r38545  
    133133        char* tmpstr = NULL, *chname = NULL;
    134134        FILE* fd = NULL;
    135        
     135
    136136        debug(400, "epgscan thread start, wait for right time");
    137        
     137
    138138        //fd = fopen(EPGSCANLOG, "w");
    139139        //if(fd == NULL)
     
    167167        else
    168168                fprintf(fd, "epgscan thread start, wait for right time\n");
    169        
     169
    170170        //wait for right time
    171171        while(self->aktion != STOP && time(NULL) < 1072224000) // 01.01.2004
     
    190190        while(node != NULL && self->aktion != STOP)
    191191        {
    192                
     192
    193193                //wait for end recording
    194194                while(self->aktion != STOP && (status.recording > 0 || status.timeshift > 0))
    195195                        usleep(1 * 1000000);
    196                 if(self->aktion == STOP) break; 
    197                
     196                if(self->aktion == STOP) break;
     197
    198198                chnode = getchannel(node->serviceid, node->transponderid);
    199199                if(chnode == NULL)
    200200                {
    201201                        debug(400, "epgscan channel not found sid=%d, tid=%llu", node->serviceid, node->transponderid);
    202                         if(fd != NULL) fprintf(fd, "epgscan channel not found sid=%d, tid=%llu\n", node->serviceid, node->transponderid);
     202                        if(fd != NULL) fprintf(fd, "channel not found sid=%d, tid=%llu\n", node->serviceid, node->transponderid);
    203203                        node = node->next;
    204204                        continue;
     
    213213                {
    214214                        debug(400, "epgscan channel same as aktchannel channel=%s sid=%d, tid=%llu", chname, node->serviceid, node->transponderid);
    215                         if(fd != NULL) fprintf(fd, "epgscan channel same as aktchannel channel=%s sid=%d, tid=%llu\n", chname, node->serviceid, node->transponderid);
     215                        if(fd != NULL) fprintf(fd, "channel same as activ channel channel=%s sid=%d, tid=%llu\n", chname, node->serviceid, node->transponderid);
    216216                        node = node->next;
    217217                        continue;
     
    222222                {
    223223                        debug(400, "epgscan transponer already scanned channel=%s tid=%llu", chname, node->transponderid);
    224                         if(fd != NULL) fprintf(fd, "epgscan transponer already scanned channel=%s tid=%llu\n", chname, node->transponderid);
     224                        if(fd != NULL) fprintf(fd, "transponder already scanned channel=%s tid=%llu\n", chname, node->transponderid);
    225225                        node = node->next;
    226226                        continue;
     
    234234                {
    235235                        debug(400, "epgscan no free frontend found channel=%s", chname);
    236                         if(fd != NULL) fprintf(fd, "epgscan no free frontend found channel=%s\n", chname);
     236                        if(fd != NULL) fprintf(fd, "no free frontend found channel=%s\n", chname);
    237237                        node = node->next;
    238238                        continue;
     
    254254                        {
    255255                                debug(400, "epgscan unknown frontend channel=%s", chname);
    256                                 if(fd != NULL) fprintf(fd, "epgscan unknown frontend channel=%s\n", chname);
     256                                if(fd != NULL) fprintf(fd, "unknown frontend channel=%s\n", chname);
    257257                                node = node->next;
    258258                                continue;
     
    263263                        {
    264264                                debug(400, "epgscan frontend tune failed channel=%s", chname);
    265                                 if(fd != NULL) fprintf(fd, "epgscan frontend tune failed channel=%s\n", chname);
     265                                if(fd != NULL) fprintf(fd, "frontend tune failed channel=%s\n", chname);
    266266                                node = node->next;
    267267                                continue;
     
    269269
    270270                        debug(400, "epgscan scanning channel=%s, sid=%d, tid=%llu, frontend=%s", chname, chnode->serviceid, chnode->transponderid, fenode->feshortname);
    271                         if(fd != NULL) fprintf(fd, "epgscan scanning channel=%s, sid=%d, tid=%llu, frontend=%s\n", chname, chnode->serviceid, chnode->transponderid, fenode->feshortname);
     271                        if(fd != NULL) fprintf(fd, "scanning channel=%s, sid=%d, tid=%llu, frontend=%s\n", chname, chnode->serviceid, chnode->transponderid, fenode->feshortname);
    272272
    273273                        if(chnode->transponder != NULL) chnode->transponder->lastepg = 0;
     
    284284                {
    285285                        debug(400, "epgscan frontend locked channel=%s frontend=%s", chname, fenode->feshortname);
    286                         if(fd != NULL) fprintf(fd, "epgscan frontend locked channel=%s frontend=%s\n", chname, fenode->feshortname);
    287                 }
    288 
    289                 node = node->next;
    290         }
    291        
     286                        if(fd != NULL) fprintf(fd, "frontend locked channel=%s frontend=%s\n", chname, fenode->feshortname);
     287                }
     288
     289                node = node->next;
     290        }
     291
    292292        //write only epg
    293293        writeallconfig(2);
     
    295295end:
    296296        epgscanlistclearscantime();
    297        
     297
    298298        if(fd != NULL)
    299299        {
     
    509509                if(ret < 0)
    510510                {
    511                         perr("writting file %s", filename);
     511                        perr("writing file %s", filename);
    512512                }
    513513                node = node->next;
Note: See TracChangeset for help on using the changeset viewer.