How log2_generic get the source_id value ?
#50664
-
|
I'm working on integrating our logging module with Zephyr logger v2 subsystem, this is working fine with logger v1 but not with v2. So the problem i'm facing is submitting the msgs via My question is How Zephyr v2.7 (LTS2) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
|
CC: @nordic-krch if you can help, Thank you . |
Beta Was this translation helpful? Give feedback.
-
|
Is |
Beta Was this translation helpful? Give feedback.
-
|
@shahawi-sumup you are right,
|
Beta Was this translation helpful? Give feedback.
-
|
@nordic-krch Thanks for your help, it worked! I have added the following ASSERT to identify a problamtic msg @ line https://github.com/zephyrproject-rtos/zephyr/blob/zephyr-v2.7.1/subsys/logging/log_core.c#L706 because this ASSERT wasn't helping https://github.com/zephyrproject-rtos/zephyr/blob/zephyr-v2.7.1/subsys/logging/log_mgmt.c#L67 Could you please include something similar so it gets easier to identify the message behind the assert ? Now I'm trying to find out why i get a lot of msgs dropped with logger v2 (but not with logger v1) This makes it work, but affects system performance Thanks alot |
Beta Was this translation helpful? Give feedback.
@shahawi-sumup you are right,
log2_genericis missing source_id. I will try to fix it. Meanwhile you can use directly what is called underneath however it is a bit tricky. Source is avoid *which points to different thing depending onCONFIG_LOG_RUNTIME_FILTERINGso something like this can be used:__log_current_dynamic_dataand__log_current_const_dataare declared byLOG_MODULE_REGISTER()