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

Making the logging less verbose on NuttX #1947

Open
Laczen opened this issue Dec 21, 2024 · 0 comments
Open

Making the logging less verbose on NuttX #1947

Laczen opened this issue Dec 21, 2024 · 0 comments

Comments

@Laczen
Copy link

Laczen commented Dec 21, 2024

I am trying to make the logging less verbose on NuttX,

I can disable the logging completely by modifying the definition in nimble_npl_os_log.h in the porting directory of nuttx, but I can't make it less verbose by e.g. not enabling ..._ERROR routines.

It seems that most nimble codes uses some redefinition of BLE_NPL_LOG(lvl, ... but some code (e.g. ble_att_cmd.c) is directly using a macro BLE_EATT_LOG_ERROR(. This makes it necessary for nimble_npl_os_log.h to generate the specific macro for each "subsystem".

Is there some example that generates the correct macro's instead of one global enabled/disabled log function ?

Thanks,

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

No branches or pull requests

1 participant