QuRT logging improvements (#24462)

- Made general improvements to the QURT platform message logging so that module name is printed both in mini-dm and on apps side terminal
This commit is contained in:
Eric Katzfey
2025-03-10 18:59:52 -04:00
committed by GitHub
parent 7e0d04e446
commit 5a05444bad
9 changed files with 45 additions and 26 deletions
+2
View File
@@ -37,6 +37,8 @@
#include <drivers/device/qurt/uart.h>
#include <drivers/drv_hrt.h>
#define MODULE_NAME "SerialImpl"
namespace device
{
+2
View File
@@ -43,6 +43,8 @@
#include "hrt_work.h"
#define MODULE_NAME "drv_hrt"
static constexpr unsigned HRT_INTERVAL_MIN = 50;
static constexpr unsigned HRT_INTERVAL_MAX = 50000000;
+2
View File
@@ -44,6 +44,8 @@
#include "apps.h"
#define MODULE_NAME "main"
#define MAX_ARGS 8 // max number of whitespace separated args after app name
__BEGIN_DECLS
+3 -1
View File
@@ -41,6 +41,8 @@
#include <pthread.h>
#include "hrt_work.h"
#define MODULE_NAME "tasks"
#define PX4_TASK_STACK_SIZE 8192
#define PX4_TASK_MAX_NAME_LENGTH 32
#define PX4_TASK_MAX_ARGC 32
@@ -129,7 +131,7 @@ static px4_task_t px4_task_spawn_internal(const char *name, int priority, px4_ma
int task_index = 0;
char *p = (char *)argv;
PX4_INFO("Creating pthread %s\n", name);
PX4_INFO("Creating pthread %s", name);
if (task_mutex_initialized == false) {
task_mutex_initialized = true;