aboutsummaryrefslogtreecommitdiffstats
path: root/reference
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2018-01-05 09:22:09 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2018-01-05 09:22:09 +0100
commite4d0ba744ec98213f0832b27e8181b7362fb4153 (patch)
tree87048e9ee6f402802cc6352d2e0e3007f0d5e77e /reference
parentRemove efl_loop_main references, we should use our allocated loop (diff)
downloadexamples-e4d0ba744ec98213f0832b27e8181b7362fb4153.tar.gz
Remove promise ptr printf
Does not make sense since we are not printing the ptr from the callbacks now.
Diffstat (limited to 'reference')
-rw-r--r--reference/c/eina/src/eina_future.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/reference/c/eina/src/eina_future.c b/reference/c/eina/src/eina_future.c
index d1b88a70..774118a2 100644
--- a/reference/c/eina/src/eina_future.c
+++ b/reference/c/eina/src/eina_future.c
@@ -43,7 +43,7 @@ _value_print(void *data EINA_UNUSED, const Eina_Value value)
static void
_promise_cancel(void *data EINA_UNUSED, const Eina_Promise *dead EINA_UNUSED)
{
- printf(" Promise cancellation callback: Promise %p cancelled\n", dead);
+ printf(" Promise cancellation callback: Promise cancelled\n");
}
/*
@@ -90,7 +90,7 @@ _test1_simple_future(Efl_Loop *loop)
// Create a promise
promise = eina_promise_new(efl_loop_future_scheduler_get(loop),
_promise_cancel, NULL);
- printf("Test 1: Waiting for promise %p to be resolved...\n", promise);
+ printf("Test 1: Waiting for promise to be resolved...\n");
// This future will call _value_print() when the promise is resolved and
// execute the next test when the future is destroyed (for whatever reason)
@@ -139,7 +139,7 @@ _test2_failed_future(Efl_Loop *loop)
// Create a promise
promise = eina_promise_new(efl_loop_future_scheduler_get(loop),
_promise_cancel, NULL);
- printf("Test 2: Waiting for promise %p to be rejected...\n", promise);
+ printf("Test 2: Waiting for promise to be rejected...\n");
// This future will call _value_print() when the promise is resolved.
// If there is an error, _error_print() is called instead.
@@ -181,7 +181,7 @@ _test3_cancelled_future(Efl_Loop *loop)
promise = eina_promise_new(efl_loop_future_scheduler_get(loop),
_promise_cancel, NULL);
future = eina_future_new(promise);
- printf("Test 3: Waiting for promise %p to be cancelled...\n", promise);
+ printf("Test 3: Waiting for promise to be cancelled...\n");
// This future will call _value_print() when the promise is resolved.
// If there is an error, _error_print() is called instead.
@@ -257,7 +257,7 @@ _test4_chained_future(Efl_Loop *loop)
promise = eina_promise_new(efl_loop_future_scheduler_get(loop),
_promise_cancel, NULL);
- printf("Test 4: Waiting for promise %p to be resolved...\n", promise);
+ printf("Test 4: Waiting for promise to be resolved...\n");
// All these methods, eina_future_cb_console() and _chain_multiply_cb(), will
// be called one after the other when the promise is resolved.
// Note how the last one is _exit_cb().