commit | 661bf47f06e604384a4c7eb7bf79d2f3da71ee74 | [log] [tgz] |
---|---|---|
author | Ewout van Bekkum <ewout@google.com> | Tue Oct 29 23:01:20 2024 +0000 |
committer | Dave Roth <davidroth@google.com> | Tue Oct 29 23:01:20 2024 +0000 |
tree | df03d91ca593e32e52dbad4e327636b23bb43c7c | |
parent | 0dff1169bf8b8c9750e076fbdf6f1e5c14180888 [diff] |
pw_log: Explicitly pass verbosity to PW_LOG Updates the PW_LOG contract to ensure that PW_LOG's default implementation does not rely on any global preprocessor defines, instead it ensures that all arguments are explicitly passed. This is done by passing the verbosity explicitly as an argument by selecting them in the PW_LOG_* macros instead and updating the PW_LOG_ENABLE_IF to also take in verbosity. Lastly PW_LOG_ENABLE_IF_DEFAULT is removed and PW_LOG_ENABLE_IF is changed to be a module configuration option, meaning that there should be a single definition for a toolchain (this is not permitted to vary between compile units). Change-Id: Idef3483e1aa173295f85b18f4971b2891abb9b25 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/239035 Reviewed-by: Wyatt Hepler <hepler@google.com> Reviewed-by: Ben Lawson <benlawson@google.com> Reviewed-by: Keir Mierle <keir@google.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.