-
Notifications
You must be signed in to change notification settings - Fork 32
LOG: Add BT_LOGV to print verbose log. #290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
huangyulong3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
5bb980e to
e902530
Compare
99ea4ef to
69b94a5
Compare
| if (bt_log_print_check(BT_LOG_LEVEL_DEBUG)) \ | ||
| BT_LOG(LOG_ID_FRAMEWORK, BT_LOG_LEVEL_DEBUG, fmt, ##__VA_ARGS__); \ | ||
| } while (0); | ||
| #if CONFIG_BLUETOOTH_SERVICE_LOG_LEVEL < 7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is #if CONFIG_BLUETOOTH_SERVICE_LOG_LEVEL <= 7 or #if CONFIG_BLUETOOTH_SERVICE_LOG_LEVEL < 8?
| BT_LOG(LOG_ID_FRAMEWORK, BT_LOG_LEVEL_DEBUG, fmt, ##__VA_ARGS__); \ | ||
| } while (0); | ||
| #if CONFIG_BLUETOOTH_SERVICE_LOG_LEVEL < 7 | ||
| #define BT_LOGV(fmt, args...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we handle the case like BT_LOGD? as LINE:55 code does
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it would create too many conditional branches in production, slowing down the system.
be31cfb to
431a756
Compare
bug: v/78468 Signed-off-by: YuhengLi <[email protected]>
bug: v/78468