-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Bluetooth: Log refactor (cont.) #51897
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
Bluetooth: Log refactor (cont.) #51897
Conversation
fe5f9d7 to
fc7af71
Compare
fc7af71 to
880e034
Compare
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.
please cleanup the use of source "${ZEPHYR_BASE}/..."
Rest looks good.
subsys/bluetooth/audio/Kconfig.aics
Outdated
| legacy-debug-sym = BT_DEBUG_AICS | ||
| module-str = "Audio Input Control Service" | ||
| source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config_inherit" | ||
| source "${ZEPHYR_BASE}/subsys/bluetooth/common/Kconfig.template.log_config_bt" |
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.
minor nit, ${ZEPHYR_BASE} can be omitted when using source.
| source "${ZEPHYR_BASE}/subsys/bluetooth/common/Kconfig.template.log_config_bt" | |
| source "subsys/bluetooth/common/Kconfig.template.log_config_bt" |
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.
This should’ve been caught by compliance I think. I will check why it wasn’t.
subsys/bluetooth/audio/Kconfig.aics
Outdated
| legacy-debug-sym = BT_DEBUG_AICS_CLIENT | ||
| module-str = "Audio Input Control Service client" | ||
| source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config_inherit" | ||
| source "${ZEPHYR_BASE}/subsys/bluetooth/common/Kconfig.template.log_config_bt" |
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.
| source "${ZEPHYR_BASE}/subsys/bluetooth/common/Kconfig.template.log_config_bt" | |
| source "subsys/bluetooth/common/Kconfig.template.log_config_bt" |
subsys/bluetooth/audio/Kconfig.baps
Outdated
| legacy-debug-sym = BT_AUDIO_DEBUG_STREAM | ||
| module-str = "Bluetooth Audio Stream" | ||
| source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config_inherit" | ||
| source "${ZEPHYR_BASE}/subsys/bluetooth/common/Kconfig.template.log_config_bt" |
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.
| source "${ZEPHYR_BASE}/subsys/bluetooth/common/Kconfig.template.log_config_bt" | |
| source "subsys/bluetooth/common/Kconfig.template.log_config_bt" |
subsys/bluetooth/audio/Kconfig.baps
Outdated
| legacy-debug-sym = BT_DEBUG_ASCS | ||
| module-str = "Audio Stream Control Service" | ||
| source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config_inherit" | ||
| source "${ZEPHYR_BASE}/subsys/bluetooth/common/Kconfig.template.log_config_bt" |
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.
| source "${ZEPHYR_BASE}/subsys/bluetooth/common/Kconfig.template.log_config_bt" | |
| source "subsys/bluetooth/common/Kconfig.template.log_config_bt" |
subsys/bluetooth/audio/Kconfig.baps
Outdated
| legacy-debug-sym = BT_AUDIO_DEBUG_UNICAST_SERVER | ||
| module-str = "Bluetooth Audio Unicast Server" | ||
| source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config_inherit" | ||
| source "${ZEPHYR_BASE}/subsys/bluetooth/common/Kconfig.template.log_config_bt" |
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.
| source "${ZEPHYR_BASE}/subsys/bluetooth/common/Kconfig.template.log_config_bt" | |
| source "subsys/bluetooth/common/Kconfig.template.log_config_bt" |
subsys/bluetooth/audio/Kconfig.csip
Outdated
| legacy-debug-sym = BT_DEBUG_CSIP_SET_MEMBER_CRYPTO | ||
| module-str = "Coordinated Set Identification Profile crypto functions" | ||
| source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config_inherit" | ||
| source "${ZEPHYR_BASE}/subsys/bluetooth/common/Kconfig.template.log_config_bt" |
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.
| source "${ZEPHYR_BASE}/subsys/bluetooth/common/Kconfig.template.log_config_bt" | |
| source "subsys/bluetooth/common/Kconfig.template.log_config_bt" |
subsys/bluetooth/audio/Kconfig.has
Outdated
| legacy-debug-sym = BT_DEBUG_HAS | ||
| module-str = "Hearing Access Service" | ||
| source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config_inherit" | ||
| source "${ZEPHYR_BASE}/subsys/bluetooth/common/Kconfig.template.log_config_bt" |
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.
| source "${ZEPHYR_BASE}/subsys/bluetooth/common/Kconfig.template.log_config_bt" | |
| source "subsys/bluetooth/common/Kconfig.template.log_config_bt" |
subsys/bluetooth/audio/Kconfig.has
Outdated
| legacy-debug-sym = BT_DEBUG_HAS_CLIENT | ||
| module-str = "Hearing Access Service Client" | ||
| source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config_inherit" | ||
| source "${ZEPHYR_BASE}/subsys/bluetooth/common/Kconfig.template.log_config_bt" |
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.
| source "${ZEPHYR_BASE}/subsys/bluetooth/common/Kconfig.template.log_config_bt" | |
| source "subsys/bluetooth/common/Kconfig.template.log_config_bt" |
subsys/bluetooth/audio/Kconfig.mcs
Outdated
| legacy-debug-sym = BT_DEBUG_MCS | ||
| module-str = "Media Control Service" | ||
| source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config_inherit" | ||
| source "${ZEPHYR_BASE}/subsys/bluetooth/common/Kconfig.template.log_config_bt" |
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.
| source "${ZEPHYR_BASE}/subsys/bluetooth/common/Kconfig.template.log_config_bt" | |
| source "subsys/bluetooth/common/Kconfig.template.log_config_bt" |
subsys/bluetooth/audio/Kconfig.mcs
Outdated
| legacy-debug-sym = BT_DEBUG_MCC | ||
| module-str = "Media Control Client" | ||
| source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config_inherit" | ||
| source "${ZEPHYR_BASE}/subsys/bluetooth/common/Kconfig.template.log_config_bt" |
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.
| source "${ZEPHYR_BASE}/subsys/bluetooth/common/Kconfig.template.log_config_bt" | |
| source "subsys/bluetooth/common/Kconfig.template.log_config_bt" |
8aad629
|
@theob-pro thanks for fixing, but please squash the fix with previous commit, there is no reason to have that particular review comment fix as a independent commit. |
…n/log` The `bluetooth/common/log.h` and `bluetooth/common/log.c` files have been removed. Files that were using them have been updated to use `zephyr/logging/log.h` instead. Those replacement have been done consequently: - `/BT_DBG/LOG_DBG/` - `/BT_ERR/LOG_ERR/` - `/BT_WARN/LOG_WRN/` - `/BT_INFO/LOG_INF/` - `/BT_HEXDUMP_DBG/LOG_HEXDUMP_DBG/` - `/BT_DBG_OBJ_ID/LOG_DBG_OBJ_ID/` Also, some files were relying on the `common/log.h` include to include `zephyr/bluetooth/hci.h`, in those cases the include of `hci.h` has been added. For files that were including `common/log.h` but not using any logs, the include has been removed and not replaced. Signed-off-by: Théo Battrel <[email protected]>
8aad629 to
8390c60
Compare
tejlmand
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
Last part of the log refactor work.
The
common/loghas been removed and file that were using it for log has been updated.More details in the commit message.