Changeset 96


Ignore:
Timestamp:
Jun 3, 2009, 6:42:31 PM (11 years ago)
Author:
polo
Message:

Add card info logging when log file reach MaxLogSize?

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/oscam-log.c

    r70 r96  
    4141      else if( pfinit(file))
    4242        cs_exit(0);
     43
     44      int i;
     45      for( i=1; i<CS_MAXPID; i++ ) {
     46        if( client[i].pid && client[i].typ=='c' && client[i].usr[0] ) {
     47          kill(client[i].pid, SIGUSR2);
     48        }
     49      }
     50   
    4351    }
    4452  }
  • trunk/oscam.c

    r95 r96  
    412412  uchar dummy[1]={0x00};
    413413  for( i=1; i<CS_MAXPID; i++ )
    414     if( client[i].pid && client[i].typ=='r' && client[i].fd_m2c )
     414    if( client[i].pid && client[i].typ=='r' && client[i].fd_m2c ){
    415415      write_to_pipe(client[i].fd_m2c, PIP_ID_CIN, dummy, 1);
     416    }
    416417
    417418      //kill(client[i].pid, SIGUSR2);
  • trunk/reader-conax.c

    r94 r96  
    262262  char *txt[] = { "Package", "PPV-Event" };
    263263  uchar *cmd[] = { insC6, ins26 };
     264
     265  cs_log("card detected");
     266  cs_log("type: conax");
    264267
    265268  for (type=0; type<2; type++)
  • trunk/reader-cryptoworks.c

    r94 r96  
    570570  uchar insB2[] = {0xA4, 0xB2, 0x00, 0x00, 0x00};
    571571  char l_name[20+8]=", name: ";
     572  cs_log("card detected");
     573  cs_log("type: cryptoworks");
    572574
    573575  for (i=0; i<reader[ridx].nprov; i++)
  • trunk/reader-irdeto.c

    r94 r96  
    328328  uchar buf[256]={0};
    329329  uchar sc_GetChid[]        = { 0xA0, 0xCA, 0x00, 0x00, 4, 0x22, 1, 5, 0x20};
     330  cs_log("card detected");
     331  cs_log("type: irdeto");
    330332
    331333  if (nagra)
  • trunk/reader-seca.c

    r94 r96  
    286286{
    287287int i;
     288  cs_log("card detected");
    288289  cs_ri_log("type: seca, caid: %04X, serial: %llu, card: %s ",
    289290         reader[ridx].caid[0], serial , card);
  • trunk/reader-viaccess.c

    r94 r96  
    561561  show_cls=reader[ridx].show_cls;
    562562  memset(&last_geo, 0, sizeof(last_geo));
     563  cs_log("card detected");
    563564
    564565  // set pin
  • trunk/reader-videoguard2.c

    r94 r96  
    796796{
    797797  /* info is displayed in init, or when processing info */
     798  cs_log("card detected");
     799  cs_log("type: Videoguard" );
    798800  read_tiers ();
    799801
Note: See TracChangeset for help on using the changeset viewer.