Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dvbcam: move to new tvhlog
  • Loading branch information
perexg committed Aug 17, 2016
1 parent 012eb47 commit 70db72b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/descrambler/dvbcam.c
Expand Up @@ -58,7 +58,7 @@ dvbcam_register_cam(linuxdvb_ca_t * lca, uint8_t slot, uint16_t * caids,
{
dvbcam_active_cam_t *ac;

tvhtrace("dvbcam", "register cam ca %p slot %u num_caids %u",
tvhtrace(LS_DVBCAM, "register cam ca %p slot %u num_caids %u",
lca, slot, num_caids);

num_caids = MIN(CAIDS_PER_CA_SLOT, num_caids);
Expand All @@ -84,7 +84,7 @@ dvbcam_unregister_cam(linuxdvb_ca_t * lca, uint8_t slot)
dvbcam_active_cam_t *ac, *ac_tmp;
dvbcam_active_service_t *as;

tvhtrace("dvbcam", "unregister cam lca %p slot %u", lca, slot);
tvhtrace(LS_DVBCAM, "unregister cam lca %p slot %u", lca, slot);

pthread_mutex_lock(&dvbcam_mutex);

Expand Down Expand Up @@ -132,7 +132,7 @@ dvbcam_pmt_data(mpegts_service_t *s, const uint8_t *ptr, int len)
}

if (!as) {
tvhtrace("dvbcam", "cannot find active service entry");
tvhtrace(LS_DVBCAM, "cannot find active service entry");
goto done;
}

Expand All @@ -148,7 +148,7 @@ dvbcam_pmt_data(mpegts_service_t *s, const uint8_t *ptr, int len)
/*if this is update just send updated CAPMT to CAM */
if (is_update) {

tvhtrace("dvbcam", "CAPMT sent to CAM (update)");
tvhtrace(LS_DVBCAM, "CAPMT sent to CAM (update)");
list_mgmt = CA_LIST_MANAGEMENT_UPDATE;
goto enqueue;
}
Expand All @@ -174,10 +174,10 @@ dvbcam_pmt_data(mpegts_service_t *s, const uint8_t *ptr, int len)
end_of_search_for_cam:

if (!ac) {
tvhtrace("dvbcam", "cannot find active cam entry");
tvhtrace(LS_DVBCAM, "cannot find active cam entry");
goto done;
}
tvhtrace("dvbcam", "found active cam entry");
tvhtrace(LS_DVBCAM, "found active cam entry");

if (ac->active_programs++)
list_mgmt = CA_LIST_MANAGEMENT_ADD;
Expand All @@ -197,7 +197,7 @@ dvbcam_service_start(service_t *t)
{
dvbcam_active_service_t *as;

tvhtrace("dvbcam", "start service %p", t);
tvhtrace(LS_DVBCAM, "start service %p", t);

TAILQ_FOREACH(as, &dvbcam_active_services, link)
if (as->t == t)
Expand All @@ -223,7 +223,7 @@ dvbcam_service_stop(service_t *t)
dvbcam_active_cam_t *ac2;
uint8_t slot = -1;

tvhtrace("dvbcam", "stop service %p", t);
tvhtrace(LS_DVBCAM, "stop service %p", t);

pthread_mutex_lock(&dvbcam_mutex);

Expand Down
1 change: 1 addition & 0 deletions src/tvhlog.c
Expand Up @@ -132,6 +132,7 @@ tvhlog_subsys_t tvhlog_subsystems[] = {
[LS_CSA] = { "csa", N_("CSA (descrambling)") },
[LS_CAPMT] = { "capmt", N_("CAPMT CA Client") },
[LS_CWC] = { "cwc", N_("CWC CA Client") },
[LS_DVBCAM] = { "dvbcam", N_("DVB CAM Client") },
[LS_DVR] = { "dvr", N_("Digital Video Recorder") },
[LS_EPG] = { "epg", N_("Electronic Program Guide") },
[LS_EPGDB] = { "epgdb", N_("EPG Database") },
Expand Down
1 change: 1 addition & 0 deletions src/tvhlog.h
Expand Up @@ -161,6 +161,7 @@ enum {
LS_CSA,
LS_CAPMT,
LS_CWC,
LS_DVBCAM,
LS_DVR,
LS_EPG,
LS_EPGDB,
Expand Down

0 comments on commit 70db72b

Please sign in to comment.