summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2020-01-29 00:47:15 (GMT)
committerHwankyu Jhun <h.jhun@samsung.com>2020-01-29 02:16:50 (GMT)
commit5d622df83e23acda1ca7d19fcf98a7c09f7203dd (patch)
tree989fe9ca3d83fbba9ee0ae332ff219ef30738205
parentf41ff93f01be796a48b09e72fbde2866fedc9da3 (diff)
downloadtidl-tizen_5.5.zip
tidl-tizen_5.5.tar.gz
tidl-tizen_5.5.tar.bz2
Add logs for debuggingtizen_5.5
Change-Id: I6a2196211dce992680e83249708e0f0a7ce3491f Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r--idlc/gen/c_proxy_body_gen_cb.h7
-rw-r--r--idlc/gen/c_stub_body_gen_cb.h3
2 files changed, 10 insertions, 0 deletions
diff --git a/idlc/gen/c_proxy_body_gen_cb.h b/idlc/gen/c_proxy_body_gen_cb.h
index 7eee658..7b2b740 100644
--- a/idlc/gen/c_proxy_body_gen_cb.h
+++ b/idlc/gen/c_proxy_body_gen_cb.h
@@ -57,6 +57,7 @@ static void __##_to(rpc_port_parcel_h parcel, void *data)
rpc_port_parcel_write_int32(parcel, handle->id);
rpc_port_parcel_write_int32(parcel, handle->seq_id);
rpc_port_parcel_write_bool(parcel, handle->once);
+ _I("id(%d), seq_id(%d), once(%s)", handle->id, handle->seq_id, handle->once ? "true" : "false");
}
)__c_cb";
@@ -74,6 +75,7 @@ static void __##_from(rpc_port_parcel_h parcel, void *data)
rpc_port_parcel_read_int32(parcel, &handle->id);
rpc_port_parcel_read_int32(parcel, &handle->seq_id);
rpc_port_parcel_read_bool(parcel, &handle->once);
+ _I("id(%d), seq_id(%d), once(%s)", handle->id, handle->seq_id, handle->once ? "true" : "false");
}
)__c_cb";
@@ -97,6 +99,7 @@ rpc_port_##_h rpc_port_##_create(## callback, bool once, void *user_data)
handle->callback = callback;
handle->once = once;
handle->user_data = user_data;
+ _I("id(%d), seq_id(%d)", handle->id, handle->seq_id);
return handle;
}
@@ -118,6 +121,7 @@ int rpc_port_proxy_##_dispose(rpc_port_proxy_$$_h proxy, rpc_port_##_h delegate)
while (iter) {
handle = (struct ##_s *)iter->data;
if (handle == delegate) {
+ _W("id(%d), seq_id(%d), once(%s)", handle->id, handle->seq_id, handle->once ? "true" : "false");
proxy->delegates = g_list_remove_link(proxy->delegates, iter);
free(handle);
g_list_free(iter);
@@ -160,8 +164,10 @@ $$
if (handle->seq_id == seq_id && handle->id == id) {
bool once = handle->once;
+ _W("Invoke id(%d), seq_id(%d)", id, seq_id);
$$
if (once) {
+ _W("Dispose");
*list = g_list_remove_link(*list, iter);
free(handle);
g_list_free(iter);
@@ -191,6 +197,7 @@ bool once;
rpc_port_parcel_read_int32(parcel, &id);
rpc_port_parcel_read_int32(parcel, &seq_id);
rpc_port_parcel_read_bool(parcel, &once);
+_W("id(%d), seq_id(%d)", id, seq_id);
if (id > 0 && id < (sizeof(__##_delegate_table) / sizeof(__##_delegate_table[0]))) {
if (__##_delegate_table[id])
diff --git a/idlc/gen/c_stub_body_gen_cb.h b/idlc/gen/c_stub_body_gen_cb.h
index 7c77b83..6b702d0 100644
--- a/idlc/gen/c_stub_body_gen_cb.h
+++ b/idlc/gen/c_stub_body_gen_cb.h
@@ -307,6 +307,7 @@ static void __##_to(rpc_port_parcel_h parcel, void *data)
rpc_port_parcel_write_int32(parcel, handle->id);
rpc_port_parcel_write_int32(parcel, handle->seq_id);
rpc_port_parcel_write_bool(parcel, handle->once);
+ _I("id(%d), seq_id(%d), once(%s)", handle->id, handle->seq_id, handle->once ? "true" : "false");
}
)__c_cb";
@@ -324,6 +325,7 @@ static void __##_from(rpc_port_parcel_h parcel, void *data)
rpc_port_parcel_read_int32(parcel, &handle->id);
rpc_port_parcel_read_int32(parcel, &handle->seq_id);
rpc_port_parcel_read_bool(parcel, &handle->once);
+ _I("id(%d), seq_id(%d), once(%s)", handle->id, handle->seq_id, handle->once ? "true" : "false");
}
)__c_cb";
@@ -350,6 +352,7 @@ int rpc_port_##_clone(rpc_port_##_h h, rpc_port_##_h *clone)
handle->seq_id = h->seq_id;
handle->once = h->once;
handle->valid = h->valid;
+ _I("id(%d), seq_id(%d), once(%s)", handle->id, handle->seq_id, handle->once ? "true" : "false");
*clone = handle;