Skip to content

Conversation

@expliyh
Copy link
Contributor

@expliyh expliyh commented Nov 18, 2025

bug: v/78468

chengkai15
chengkai15 previously approved these changes Nov 21, 2025
huangyulong3
huangyulong3 previously approved these changes Nov 24, 2025
Copy link

@huangyulong3 huangyulong3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@expliyh expliyh force-pushed the verbose_log branch 2 times, most recently from 5bb980e to e902530 Compare November 24, 2025 09:29
@expliyh expliyh force-pushed the verbose_log branch 2 times, most recently from 99ea4ef to 69b94a5 Compare December 22, 2025 13:12
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

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...)
Copy link
Contributor

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

Copy link
Contributor Author

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.

@expliyh expliyh force-pushed the verbose_log branch 2 times, most recently from be31cfb to 431a756 Compare December 24, 2025 11:29
@liujinye-sys liujinye-sys reopened this Dec 24, 2025
bug: v/78468

Signed-off-by: YuhengLi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants