Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to the QURT platform message logging facility #24462

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

katzfey
Copy link
Contributor

@katzfey katzfey commented Mar 6, 2025

Made general improvements to the QURT platform message logging so that module name is printed both in mini-dm and on apps side terminal. Also some QURT log formatting changes to get rid of extra newlines.

…t module name is printed both in mini-dm and on apps side terminal
@@ -70,48 +70,48 @@ __END_DECLS
/****************************************************************************
* Messages that should never be filtered or compiled out
****************************************************************************/
#define PX4_INFO(FMT, ...) qurt_log(_PX4_LOG_LEVEL_INFO, __FILE__, __LINE__, FMT, ##__VA_ARGS__)
#define PX4_INFO(FMT, ...) qurt_log_module(_PX4_LOG_LEVEL_INFO, MODULE_NAME, __FILE__, __LINE__, FMT, ##__VA_ARGS__)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe stating the obvious, but at some point we should really split this so qurt can provide its own log.h rather than having a central header with platform defines.

@dagar dagar merged commit 5a05444 into main Mar 10, 2025
62 checks passed
@dagar dagar deleted the pr-module-name-in-log branch March 10, 2025 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants