sys/log_*: modularize log into log_color and log_printfnoformat#18425
sys/log_*: modularize log into log_color and log_printfnoformat#18425leandrolanzieri merged 3 commits intoRIOT-OS:masterfrom
Conversation
|
i moved the doccheck changes to #18431 and added the Kconfig adaption |
miri64
left a comment
There was a problem hiding this comment.
log_% should pull in log as a dependency in sys/Makefile.dep, so it also works as long as we still use "legacy" dependencies.
this already is the case in master as this was needed for the pseudomodules as well https://github.com/RIOT-OS/RIOT/blob/master/sys/Makefile.dep#L399-L402 and unchaged in this PR |
039f183 to
fc0afac
Compare
- log_color: make log_write nonstatic - log_printfnoformat - apply module split to Kconfig
fc0afac to
bac70c5
Compare
Murdock results✔️ PASSED e89063e sys/log_color: guard from compiling for esp
ArtifactsThis only reflects a subset of all builds from https://ci-prod.riot-os.org. Please refer to https://ci.riot-os.org for a complete build for now. |
1f4ae3a to
05cf1e8
Compare
05cf1e8 to
e89063e
Compare
benpicco
left a comment
There was a problem hiding this comment.
That's a sensible cleanup.
|
Not having a copy of the log function in every object file is IMO a bugfix. @leandrolanzieri I'd like to still have this. Please hit merge if you have no objections. |
Contribution description
this transforms sys/log into two simple modules
this also makes log_write nonstatic for log_color
(saving a lot of space in builds) from #18403
Testing procedure
there are log tests all variants
Issues/PRs references
this arose from the discussion in #18403
this also solves #18379