From 24bdff094c2c1bb925c6ab34343b1f3d5ecbb277 Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Sun, 10 Jun 2012 20:17:01 +0900 Subject: [PATCH] Remove verbose debugging message Change-Id: Id4b721db9a32e7cd01db7139a16d6af26e563e76 --- src/livebox.c | 20 -------------------- src/rpc_to_master.c | 3 --- src/so_handler.c | 11 ----------- 3 files changed, 34 deletions(-) diff --git a/src/livebox.c b/src/livebox.c index 74bae33..fbb4911 100644 --- a/src/livebox.c +++ b/src/livebox.c @@ -95,12 +95,9 @@ static inline int output_handler(struct item *item) item->monitor_cnt = 0; } - DbgPrint("monitor_cnt: %d\n", item->monitor_cnt); - if (item->monitor_cnt == 0) { fault_unmark_call(item->inst->item->pkgname, item->inst->filename, "update,crashed", NO_ALARM); if (item->monitor) { - DbgPrint("Destroy monitor: %p\n", item->monitor); ecore_timer_del(item->monitor); item->monitor = NULL; } @@ -262,7 +259,6 @@ static Eina_Bool updator_cb(void *data) item->inst->item->pkgname, item->inst->filename, item->inst->item->timeout); return ECORE_CALLBACK_RENEW; } - DbgPrint("Add new monitor: %p\n", item->monitor); /*! * \note @@ -285,7 +281,6 @@ static Eina_Bool updator_cb(void *data) if (ret < 0) { item->monitor_cnt--; - DbgPrint("Reset monitor\n"); ecore_timer_del(item->monitor); item->monitor = NULL; s_info.update = NULL; @@ -457,13 +452,11 @@ int livebox_create(const char *pkgname, const char *filename, const char *conten s_info.item_list = eina_list_append(s_info.item_list, item); if (create_ret & NEED_TO_SCHEDULE) { - DbgPrint("%s Need to schedule\n", pkgname); (void)append_pending_list(item); } if (create_ret & OUTPUT_UPDATED) { update_monitor_cnt(item); - DbgPrint("%s Output updated\n", pkgname); /*! * \note * To send a output info, get the info forcely. @@ -506,10 +499,8 @@ int livebox_destroy(const char *pkgname, const char *filename) item->timer = NULL; if (item->monitor) { - DbgPrint("monitor is found %p\n", item->monitor); item->deleteme = 1; } else { - DbgPrint("monitor is not exists, delete item: %p\n", item); update_monitor_del(item); } } @@ -546,13 +537,11 @@ int livebox_resize(const char *pkgname, const char *filename, int w, int h) return ret; if (ret & NEED_TO_SCHEDULE) { - DbgPrint("%s Need to schedule\n", pkgname); (void)append_pending_list(item); } if (ret & OUTPUT_UPDATED) { update_monitor_cnt(item); - DbgPrint("%s Output updated\n", pkgname); } return 0; @@ -583,11 +572,8 @@ int livebox_set_period(const char *pkgname, const char *filename, double period) } } else { if (item->timer) { - DbgPrint("Update period to %lf\n", period); ecore_timer_interval_set(item->timer, period); } else { - DbgPrint("Add new update timer %lf\n", period); - item->timer = ecore_timer_add(period, updator_cb, item); if (!item->timer) { ErrPrint("Failed to add timer\n"); @@ -629,13 +615,11 @@ int livebox_clicked(const char *pkgname, const char *filename, const char *event return ret; if (ret & NEED_TO_SCHEDULE) { - DbgPrint("%s Need to schedule\n", pkgname); (void)append_pending_list(item); } if (ret & OUTPUT_UPDATED) { update_monitor_cnt(item); - DbgPrint("%s Output updated\n", pkgname); } return 0; @@ -665,13 +649,11 @@ int livebox_script_event(const char *pkgname, const char *filename, const char * return ret; if (ret & NEED_TO_SCHEDULE) { - DbgPrint("%s Need to schedule\n", pkgname); (void)append_pending_list(item); } if (ret & OUTPUT_UPDATED) { update_monitor_cnt(item); - DbgPrint("%s Output updated\n", pkgname); } return 0; @@ -730,13 +712,11 @@ int livebox_change_group(const char *pkgname, const char *filename, const char * return ret; if (ret & NEED_TO_SCHEDULE) { - DbgPrint("%s Need to schedule\n", pkgname); (void)append_pending_list(item); } if (ret & OUTPUT_UPDATED) { update_monitor_cnt(item); - DbgPrint("%s Output updated\n", pkgname); } return 0; diff --git a/src/rpc_to_master.c b/src/rpc_to_master.c index 817ea28..7f9913b 100644 --- a/src/rpc_to_master.c +++ b/src/rpc_to_master.c @@ -53,7 +53,6 @@ int rpc_send_ping(void) if (!proxy) return -EINVAL; - DbgPrint("Name: %s\n", main_get_name()); param = g_variant_new("(s)", main_get_name()); if (!param) { ErrPrint("Failed to create a variant\n"); @@ -150,8 +149,6 @@ int rpc_send_deleted(const char *pkgname, const char *filename) if (!param) return -EFAULT; - DbgPrint("Send deleted request to the master: %s\n", pkgname); - err = NULL; param = g_dbus_proxy_call_sync(proxy, "deleted", param, G_DBUS_CALL_FLAGS_NO_AUTO_START, -1, NULL, &err); diff --git a/src/so_handler.c b/src/so_handler.c index cf4ff61..6b87c5e 100644 --- a/src/so_handler.c +++ b/src/so_handler.c @@ -482,7 +482,6 @@ int so_create(const char *pkgname, const char *filename, const char *content_inf } heap_unhook(item->heap); fault_unmark_call(pkgname, filename, __func__, USE_ALARM); - DbgPrint("%s create returns %d\n", pkgname, ret); if (ret < 0) { item->inst_list = eina_list_remove(item->inst_list, inst); @@ -522,7 +521,6 @@ int so_destroy(struct instance *inst) heap_unhook(item->heap); fault_unmark_call(item->pkgname, inst->filename, __func__, USE_ALARM); - DbgPrint("%s destroy retusn %d [HEAP: %lu]\n", item->pkgname, ret, heap_usage(item->heap)); heap_destroy(item->heap); item->heap = NULL; @@ -557,7 +555,6 @@ int so_is_updated(struct instance *inst) } heap_unhook(item->heap); fault_unmark_call(item->pkgname, inst->filename, __func__, USE_ALARM); - DbgPrint("%s is_updated returns %d\n", item->pkgname, ret); return ret; } @@ -582,7 +579,6 @@ int so_need_to_destroy(struct instance *inst) } heap_unhook(item->heap); fault_unmark_call(item->pkgname, inst->filename, __func__, USE_ALARM); - DbgPrint("%s need_to_destroy returns %d\n", item->pkgname, ret); return ret; } @@ -605,7 +601,6 @@ int so_update(struct instance *inst) ret = -ENOSYS; } fault_unmark_call(item->pkgname, inst->filename, __func__, USE_ALARM); - DbgPrint("%s update_content returns %d\n", item->pkgname, ret); return ret; } @@ -630,7 +625,6 @@ int so_clicked(struct instance *inst, const char *event, double timestamp, doubl } heap_unhook(item->heap); fault_unmark_call(item->pkgname, inst->filename, __func__, USE_ALARM); - DbgPrint("%s clicked returns %d\n", item->pkgname, ret); return ret; } @@ -655,7 +649,6 @@ int so_script_event(struct instance *inst, const char *emission, const char *sou } heap_unhook(item->heap); fault_unmark_call(item->pkgname, inst->filename, __func__, USE_ALARM); - DbgPrint("%s script_event returns %d\n", item->pkgname, ret); return ret; } @@ -680,7 +673,6 @@ int so_resize(struct instance *inst, int w, int h) } heap_unhook(item->heap); fault_unmark_call(item->pkgname, inst->filename, __func__, USE_ALARM); - DbgPrint("%s resize returns %d\n", item->pkgname, ret); return ret; } @@ -711,7 +703,6 @@ int so_create_needed(const char *pkgname, const char *cluster, const char *categ } heap_unhook(item->heap); fault_unmark_call(item->pkgname, __func__, __func__, USE_ALARM); - DbgPrint("%s create_needed returns %d\n", pkgname, ret); return ret; } @@ -748,7 +739,6 @@ int so_change_group(struct instance *inst, const char *cluster, const char *cate } heap_unhook(item->heap); fault_unmark_call(item->pkgname, inst->filename, __func__, USE_ALARM); - DbgPrint("%s change group returns %d\n", item->pkgname, ret); if (ret >= 0) { free(inst->cluster); free(inst->category); @@ -783,7 +773,6 @@ int so_get_output_info(struct instance *inst, int *w, int *h, double *priority) } heap_unhook(item->heap); fault_unmark_call(item->pkgname, inst->filename, __func__, USE_ALARM); - DbgPrint("%s get_output_info returns %d\n", item->pkgname, ret); if (ret >= 0) { inst->w = *w; inst->h = *h; -- 2.7.4