diff options
author | Juha Kauraniemi <juha.kauraniemi@nokia.com> | 2022-11-03 08:52:55 +0000 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2022-11-03 14:45:26 +0200 |
commit | 85c52a65afa1cc1d582507e353cdfc900d8e44a3 (patch) | |
tree | 3d2bee661274c17b6df9f5f3466f150c59bc685a /helper | |
parent | a565022de7c2281412a8930ee0dc40a5e6318c02 (diff) |
helper: threads: improve odph_thread_create() timeout error message
Add more debug information to thread startup timeout error message from
odph_thread_create().
Signed-off-by: Juha Kauraniemi <juha.kauraniemi@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'helper')
-rw-r--r-- | helper/threads.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/helper/threads.c b/helper/threads.c index 1b5df8965..74f64b138 100644 --- a/helper/threads.c +++ b/helper/threads.c @@ -20,6 +20,7 @@ #include <sys/mman.h> #include <sys/time.h> #include <sys/resource.h> +#include <inttypes.h> #include <odp_api.h> #include <odp/helper/threads.h> @@ -361,7 +362,10 @@ int odph_thread_create(odph_thread_t thread[], } while (status != INIT_DONE && timeout == 0); if (timeout) { - ODPH_ERR("Thread (i:%i) start up timeout\n", i); + ODPH_ERR("Thread (i:%i) start up timeout: sync timeout %" PRIu64 "" + " , t1 %" PRIu64 ", t2 %" PRIu64 "\n", i, + param->sync_timeout, odp_time_to_ns(t1), + odp_time_to_ns(t2)); break; } } |