commit | 4c95c0b750f1933ae9dd8445807ef43662dbc870 | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Thu Dec 22 20:50:05 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Dec 22 20:50:05 2022 +0000 |
tree | 41a6e961c02d89b2e7b204b7a5e4adb30af86d4d | |
parent | a2674e13508b6e11ad4b13578910465be0b31a4b [diff] |
pw_log: Add the log module name to PW_HANDLE_LOG() pw_log backends previously were expected to access the PW_LOG_MODULE_NAME macro to get the module name. Passing the log module name to PW_HANDLE_LOG() instead makes it simple to use different log module names for different lines in the same file. It also makes it possible to set the log module name in a header file, where PW_LOG_MODULE_NAME cannot be set without non-standard push/pop pragmas. Fixes: b/254117152 Requires: pigweed-internal:37069 Change-Id: Ie50aa66e0d16c4dc21f1914c564ae0fc416d8c7a Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/120670 Reviewed-by: Armando Montanez <amontanez@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Commit-Queue: Wyatt Hepler <hepler@google.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/.