i = 0;
EINA_LIST_FOREACH(s_info.pd_list, l, tmp) {
- if (pkgname && !strcmp(pkgname, tmp)) {
- DbgPrint("PD(%s) is opened\n", pkgname);
+ if (pkgname && !strcmp(pkgname, tmp))
return 1;
- }
i++;
}
return ECORE_CALLBACK_RENEW;
s_info.pd_open_pending_list = eina_list_remove(s_info.pd_open_pending_list, item);
- DbgPrint("Consuming pended item: %s\n", item->inst->id);
/*!
* \note
* To prevent from checking the is_updated function
cleanout:
s_info.pd_open_pending_timer = NULL;
- DbgPrint("open pd pending list exhausted\n");
return ECORE_CALLBACK_CANCEL;
}
return ECORE_CALLBACK_RENEW;
s_info.pending_list = eina_list_remove(s_info.pending_list, item);
- DbgPrint("Consuming pended item: %s\n", item->inst->id);
/*!
* \note
* To prevent from checking the is_updated function
cleanout:
s_info.pending_timer = NULL;
s_info.pending_timer_freezed = 0;
- DbgPrint("pending list exhausted\n");
return ECORE_CALLBACK_CANCEL;
}
* Do not increase the freezed counter.
* Just freeze the timer.
*/
- if (s_info.pending_timer_freezed) {
- DbgPrint("Pending timer created and freezed\n");
+ if (s_info.pending_timer_freezed)
ecore_timer_freeze(s_info.pending_timer);
- }
return 0;
}
ecore_timer_del(s_info.pending_timer);
s_info.pending_timer = NULL;
s_info.pending_timer_freezed = 0;
- DbgPrint("Clear the pending timer\n");
}
static inline void deactivate_pd_open_pending_consumer(void)
ecore_timer_del(s_info.pd_open_pending_timer);
s_info.pd_open_pending_timer = NULL;
- DbgPrint("Clear the open_pd_pending timer\n");
}
static inline int __attribute__((always_inline)) activate_pd_open_pending_consumer(void)
cnt++;
}
- if (s_info.pd_open_pending_list) {
- DbgPrint("Activate PD open pending consumer (%s)\n", pkgname);
+ if (s_info.pd_open_pending_list)
activate_pd_open_pending_consumer();
- }
if (!s_info.pending_list)
deactivate_pending_consumer();
-
- DbgPrint("%d items are migrated\n", cnt);
}
static inline void migrate_to_pending_list(const char *pkgname)
if (!s_info.pd_open_pending_list)
deactivate_pd_open_pending_consumer();
-
- DbgPrint("%d items are migrated\n", cnt);
}
static inline int append_pending_list(struct item *item)
return LB_STATUS_ERROR_EXIST;
}
- DbgPrint("Activate PD open pending consumer (%s)\n", item->inst->item->pkgname);
if (activate_pd_open_pending_consumer() < 0) {
ErrPrint("Failed to activate PD open pending consumer\n");
return LB_STATUS_ERROR_FAULT;
pending = ecore_timer_pending_get(item->timer);
delay = util_time_delay_for_compensation(period) - pending;
ecore_timer_delay(item->timer, delay);
- DbgPrint("Compensated: %lf, Instance %s resume timer\n", delay, item->inst->item->pkgname);
if (item->sleep_at == 0.0f)
return;
sleep_time = util_timestamp() - item->sleep_at;
- if (sleep_time > pending) {
- DbgPrint("Update time elapsed\n");
+ if (sleep_time > pending)
(void)updator_cb(item);
- }
item->sleep_at = 0.0f;
}
}
item->sleep_at = (double)tv.tv_sec + (double)tv.tv_usec / 1000000.0f;
- DbgPrint("Instance %s freeze timer\n", item->inst->item->pkgname);
}
static inline void update_monitor_cnt(struct item *item)
item->inst->w, item->inst->h, item->inst->priority, content, title);
} else {
item->is_lb_updated++;
- DbgPrint("Livebox script is not ready yet [%d]\n", item->is_lb_updated);
}
+ DbgPrint("CONTENT %s is updated [%d]\n", filename, item->is_lb_updated);
return output_handler(item);
}
item = data;
- DbgPrint("UPDATE TIMEOUT ========> %s - %s\n", item->inst->item->pkgname, item->inst->id);
+ ErrPrint("UPDATE TIMEOUT ========> %s - %s\n", item->inst->item->pkgname, item->inst->id);
if (s_info.update != item)
ErrPrint("Updating item is not matched\n");
}
snprintf(filename, len, "%s.desc", util_uri_to_path(id));
- DbgPrint("Add DESC monitor: %s\n", filename);
return update_monitor_add_update_cb(filename, desc_updated_cb, item);
}
return ret;
}
- DbgPrint("Content: [%s]\n", content_info);
create_ret = so_create(pkgname, id, content_info, timeout, has_livebox_script, cluster, category, abi, &inst);
if (create_ret < 0) {
update_monitor_del(id, item);
if (emission && source && !strcmp(source, id)) {
if (item->inst->item->has_livebox_script) {
if (!strcmp(emission, "lb,show")) {
- DbgPrint("Livebox(%s) script is ready now\n", id);
item->is_lb_show = 1;
- DbgPrint("Updated %d times, (content: %s), (title: %s)\n", item->is_lb_updated, item->inst->content, item->inst->title);
+ DbgPrint("[%s] Updated %d times, (content: %s), (title: %s)\n", id, item->is_lb_updated, item->inst->content, item->inst->title);
if (item->is_lb_updated) {
provider_send_updated(item->inst->item->pkgname, item->inst->id,
item->inst->w, item->inst->h, item->inst->priority, item->inst->content, item->inst->title);
struct item *item;
int cnt = 0;
- DbgPrint("Delete all deleteme\n");
EINA_LIST_FOREACH_SAFE(s_info.item_list, l, n, item) {
if (!item->deleteme)
continue;
cnt++;
}
- DbgPrint("Deleteme: %d\n", cnt);
+ DbgPrint("Delete all deleteme: %d\n", cnt);
return LB_STATUS_SUCCESS;
}
continue;
}
- if (item->is_paused) {
- DbgPrint("Instance %s is already paused\n", item->inst->id);
+ if (item->is_paused)
continue;
- }
timer_freeze(item);
continue;
}
- if (item->is_paused) {
- DbgPrint("Instance %s is still paused\n", item->inst->id);
+ if (item->is_paused)
continue;
- }
timer_thaw(item);
item->is_paused = 1;
- if (s_info.paused) {
- DbgPrint("Already paused: %s\n", item->inst->id);
+ if (s_info.paused)
return LB_STATUS_SUCCESS;
- }
timer_freeze(item);
item->is_paused = 0;
- if (s_info.paused) {
- DbgPrint("Instance %s is still paused\n", item->inst->id);
+ if (s_info.paused)
return LB_STATUS_SUCCESS;
- }
timer_thaw(item);