dbus: added some info logs for dbus rpc callbacks

This commit is contained in:
Jaroslav Kysela 2014-08-09 16:00:55 +02:00
parent 2beac9e064
commit da4574d393
2 changed files with 5 additions and 0 deletions

View file

@ -69,6 +69,8 @@ satip_device_block( const char *addr, int block )
continue;
sd = (satip_device_t *)th;
if (strcmp(sd->sd_info.addr, addr) == 0) {
tvhinfo("satip", "address %s is %s", addr,
block < 0 ? "stopped" : (block > 0 ? "allowed" : "disabled"));
sd->sd_dbus_block = block < 0 ? 0 : block;
if (block < 0) {
TAILQ_FOREACH(lfe, &sd->sd_frontends, sf_link)

View file

@ -346,6 +346,8 @@ subscription_set_postpone(void *aux, const char *path, int64_t postpone)
th_subscription_t *s;
time_t now = time(NULL);
if (strcmp(path, "set"))
return -1;
/* some limits that make sense */
if (postpone < 0)
postpone = 0;
@ -354,6 +356,7 @@ subscription_set_postpone(void *aux, const char *path, int64_t postpone)
pthread_mutex_lock(&global_lock);
if (subscription_postpone != postpone) {
subscription_postpone = postpone;
tvhinfo("subscriptions", "postpone set to %d seconds", (int)postpone);
LIST_FOREACH(s, &subscriptions, ths_global_link) {
s->ths_postpone = postpone;
if (s->ths_postpone_end > now && s->ths_postpone_end - now > postpone)