mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 20:03:34 +08:00
QURT px4_layer: removed debug printfs
This commit is contained in:
@@ -99,16 +99,13 @@ void init_once(void)
|
|||||||
{
|
{
|
||||||
// Required for QuRT
|
// Required for QuRT
|
||||||
//_posix_init();
|
//_posix_init();
|
||||||
PX4_WARN("Before calling work_queue_init");
|
|
||||||
|
|
||||||
// _shell_task_id = pthread_self();
|
// _shell_task_id = pthread_self();
|
||||||
// PX4_INFO("Shell id is %lu", _shell_task_id);
|
// PX4_INFO("Shell id is %lu", _shell_task_id);
|
||||||
|
|
||||||
work_queues_init();
|
work_queues_init();
|
||||||
PX4_WARN("Before calling hrt_init");
|
|
||||||
hrt_work_queue_init();
|
hrt_work_queue_init();
|
||||||
hrt_init();
|
hrt_init();
|
||||||
PX4_WARN("after calling hrt_init");
|
|
||||||
|
|
||||||
/* Shared memory param sync*/
|
/* Shared memory param sync*/
|
||||||
init_params();
|
init_params();
|
||||||
|
|||||||
@@ -197,11 +197,11 @@ px4_task_t px4_task_spawn_cmd(const char *name, int scheduler, int priority, int
|
|||||||
#endif
|
#endif
|
||||||
size_t fixed_stacksize = -1;
|
size_t fixed_stacksize = -1;
|
||||||
pthread_attr_getstacksize(&attr, &fixed_stacksize);
|
pthread_attr_getstacksize(&attr, &fixed_stacksize);
|
||||||
PX4_INFO("stack size: %d passed stacksize(%d)", fixed_stacksize, stack_size);
|
PX4_DEBUG("stack size: %d passed stacksize(%d)", fixed_stacksize, stack_size);
|
||||||
fixed_stacksize = 8 * 1024;
|
fixed_stacksize = 8 * 1024;
|
||||||
fixed_stacksize = (fixed_stacksize < (size_t)stack_size) ? (size_t)stack_size : fixed_stacksize;
|
fixed_stacksize = (fixed_stacksize < (size_t)stack_size) ? (size_t)stack_size : fixed_stacksize;
|
||||||
|
|
||||||
PX4_INFO("setting the thread[%s] stack size to[%d]", name, fixed_stacksize);
|
PX4_DEBUG("setting the thread[%s] stack size to[%d]", name, fixed_stacksize);
|
||||||
pthread_attr_setstacksize(&attr, fixed_stacksize);
|
pthread_attr_setstacksize(&attr, fixed_stacksize);
|
||||||
|
|
||||||
PX4_DEBUG("stack address after pthread_attr_setstacksize: 0x%X", attr.stackaddr);
|
PX4_DEBUG("stack address after pthread_attr_setstacksize: 0x%X", attr.stackaddr);
|
||||||
|
|||||||
Reference in New Issue
Block a user