aboutsummaryrefslogtreecommitdiff
path: root/helper/linux/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'helper/linux/thread.c')
-rw-r--r--helper/linux/thread.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/helper/linux/thread.c b/helper/linux/thread.c
index 52d4efc5e..ec2847a88 100644
--- a/helper/linux/thread.c
+++ b/helper/linux/thread.c
@@ -1,7 +1,5 @@
-/* Copyright (c) 2016, Linaro Limited
- * All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright (c) 2016-2018 Linaro Limited
*/
#ifndef _GNU_SOURCE
@@ -20,9 +18,9 @@
#include <stdbool.h>
#include <odp_api.h>
+#include <odp/helper/debug.h>
#include <odp/helper/linux/pthread.h>
#include <odp/helper/linux/process.h>
-#include "odph_debug.h"
static void *_odph_run_start_routine(void *arg)
{
@@ -89,7 +87,8 @@ int odph_linux_pthread_create(odph_linux_pthread_t *pthread_tbl,
_odph_run_start_routine,
&pthread_tbl[i].thr_params);
if (ret != 0) {
- ODPH_ERR("Failed to start thread on cpu #%d\n", cpu);
+ ODPH_ERR("Failed to start thread on CPU #%d: %d\n", cpu,
+ ret);
break;
}