mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-08-02 06:46:04 +00:00
pw_log: Cast log level to int32_t
Bug: 343518613 Change-Id: I7453bb8df5cf3f6d96f74c1a0aa85a19c338ff56 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/212092 Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Samuel Liu <slliu@google.com> Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
This commit is contained in:
parent
962d662171
commit
eee966337a
|
@ -13,6 +13,8 @@
|
|||
// the License.
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
// These configuration options differ from the options in pw_log/options.h in
|
||||
// that these should be set at a global level in the build system rather than
|
||||
// at a module or compile unit level.
|
||||
|
@ -37,5 +39,6 @@
|
|||
// This expression determines whether or not the statement is enabled and
|
||||
// should be passed to the backend.
|
||||
#ifndef PW_LOG_ENABLE_IF_DEFAULT
|
||||
#define PW_LOG_ENABLE_IF_DEFAULT(level, module, flags) ((level) >= PW_LOG_LEVEL)
|
||||
#define PW_LOG_ENABLE_IF_DEFAULT(level, module, flags) \
|
||||
((int32_t)(level) >= (int32_t)(PW_LOG_LEVEL))
|
||||
#endif // PW_LOG_ENABLE_IF_DEFAULT
|
||||
|
|
Loading…
Reference in New Issue
Block a user