mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 11:03:33 +08:00
Linux: removed debug output for task creation
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -160,7 +160,7 @@ px4_task_t px4_task_spawn_cmd(const char *name, int scheduler, int priority, int
|
|||||||
if (rv != 0) {
|
if (rv != 0) {
|
||||||
|
|
||||||
if (rv == EPERM) {
|
if (rv == EPERM) {
|
||||||
printf("WARNING: NOT RUNING AS ROOT, UNABLE TO RUN REALTIME THREADS\n");
|
//printf("WARNING: NOT RUNING AS ROOT, UNABLE TO RUN REALTIME THREADS\n");
|
||||||
rv = pthread_create (&task, NULL, (void *)&entry_adapter, (void *) taskdata);
|
rv = pthread_create (&task, NULL, (void *)&entry_adapter, (void *) taskdata);
|
||||||
if (rv != 0) {
|
if (rv != 0) {
|
||||||
printf("px4_task_spawn_cmd: failed to create thread %d %d\n", rv, errno);
|
printf("px4_task_spawn_cmd: failed to create thread %d %d\n", rv, errno);
|
||||||
@@ -172,8 +172,6 @@ px4_task_t px4_task_spawn_cmd(const char *name, int scheduler, int priority, int
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("pthread_create task=%lu rv=%d\n",(unsigned long)task, rv);
|
|
||||||
|
|
||||||
for (i=0; i<PX4_MAX_TASKS; ++i) {
|
for (i=0; i<PX4_MAX_TASKS; ++i) {
|
||||||
if (taskmap[i].isused == false) {
|
if (taskmap[i].isused == false) {
|
||||||
taskmap[i].pid = task;
|
taskmap[i].pid = task;
|
||||||
|
|||||||
Reference in New Issue
Block a user