bluetooth: shell: refactor shell print for Bluetooth-specific context #160715
compliance.yml
on: pull_request
Run compliance checks on patch series (PR)
2m 28s
Annotations
1 error, 1 warning, and 10 notices
Run compliance checks on patch series (PR)
Process completed with exit code 1.
|
Run compliance checks on patch series (PR):
ClangFormat.txt#L1
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details.
You may want to run clang-format on this change:
- bt_shell_print("%s address: %s (%s)", desc, addr_str,
- addr_desc);
+ bt_shell_print("%s address: %s (%s)", desc, addr_str, addr_desc);
File:subsys/bluetooth/host/shell/bt.c
Line:131
You may want to run clang-format on this change:
- bt_shell_fprintf_info("%*sType 0x%02x: ",
- strlen(scan_response_label), "", data->type);
+ bt_shell_fprintf_info("%*sType 0x%02x: ", strlen(scan_response_label), "", data->type);
File:subsys/bluetooth/host/shell/bt.c
Line:365
You may want to run clang-format on this change:
- bt_shell_fprintf_warn(
- "BT_DATA_SVC_DATA16 data length too short (%u)",
- data->data_len);
+ bt_shell_fprintf_warn("BT_DATA_SVC_DATA16 data length too short (%u)",
+ data->data_len);
File:subsys/bluetooth/host/shell/bt.c
Line:380
You may want to run clang-format on this change:
- bt_shell_fprintf_warn(
- "BT_DATA_SVC_DATA32 data length too short (%u)",
- data->data_len);
+ bt_shell_fprintf_warn("BT_DATA_SVC_DATA32 data length too short (%u)",
+ data->data_len);
File:subsys/bluetooth/host/shell/bt.c
Line:401
You may want to run clang-format on this change:
- bt_shell_fprintf_warn(
- "BT_DATA_SVC_DATA128 data length too short (%u)",
- data->data_len);
+ bt_shell_fprintf_warn("BT_DATA_SVC_DATA128 data length too short (%u)",
+ data->data_len);
File:subsys/bluetooth/host/shell/bt.c
Line:423
You may want to run clang-format on this change:
- scan_response_label,
- le_addr, info->adv_type, info->rssi, name,
+ scan_response_label, le_addr, info->adv_type, info->rssi, name,
(info->adv_props & BT_GAP_ADV_PROP_CONNECTABLE) != 0,
(info->adv_props & BT_GAP_ADV_PROP_SCANNABLE) != 0,
(info->adv_props & BT_GAP_ADV_PROP_DIRECTED) != 0,
(info->adv_props & BT_GAP_ADV_PROP_SCAN_RESPONSE) != 0,
- (info->adv_props & BT_GAP_ADV_PROP_EXT_ADV) != 0,
- phy2str(info->primary_phy), phy2str(info->secondary_phy),
- info->interval, BT_CONN_INTERVAL_TO_US(info->interval),
- info->sid);
+ (info->adv_props & BT_GAP_ADV_PROP_EXT_ADV) != 0, phy2str(info->primary_phy),
+ phy2str(info->secondary_phy), info->interval,
+ BT_CONN_INTERVAL_TO_US(info->interval), info->sid);
if (scan_verbose_output) {
- bt_shell_info("%*s[SCAN DATA START - %s]",
- strlen(scan_response_label), "",
+ bt_shell_info("%*s[SCAN DATA START - %s]", strlen(scan_response_label), "",
File:subsys/bluetooth/host/shell/bt.c
Line:579
You may want to run clang-format on this change:
- bt_shell_print("Advertiser[%d] %p sent %d",
- bt_le_ext_adv_get_index(adv), adv, info->num_sent);
+ bt_shell_print("Advertiser[%d] %p sent %d", bt_le_ext_adv_get_index(adv), adv,
+ info->num_sent);
File:subsys/bluetooth/host/shell/bt.c
Line:627
You may want to run clang-format on this change:
- bt_shell_print("Advertiser[%d] %p scanned by %s",
- bt_le_ext_adv_get_index(adv), adv, str);
+ bt_shell_print("Advertiser[%d] %p scanned by %s", bt_le_ext_adv_get_index(adv), adv, str);
File:subsys/bluetooth/host/shell/bt.c
Line:638
You may want to run clang-format on this change:
- bt_shell_print("Advertiser[%d] %p connected by %s",
- bt_le_ext_adv_get_index(adv), adv, str);
+ bt_shell_print("Advertiser[%d] %p connected by %s", bt_le_ext_adv_get_index(adv), adv, str);
File:subsys/bluetooth/host/shell/bt.c
Line:651
You may want to run clang-format on this change:
- bt_shell_print("Advertiser[%d] %p RPA %s",
- adv_index, adv,
+ bt_shell_print("Advertiser[%d] %p RPA %s", adv_index, adv,
File:subsys/bluetooth/host/shell/bt.c
Line:663
You may want to run clang-format on this change:
- bt_shell_error("Failed to connect to %s 0x%02x %s", addr,
- err, bt_hci_err_to_str(err));
+ bt_shell_error("Failed to connect to %s 0x%02x %s", addr, err,
+ bt_hci_err_to_str(err));
File:subsys/bl
|
You may want to run clang-format on this change:
subsys/bluetooth/host/shell/bt.c#L131
subsys/bluetooth/host/shell/bt.c:131
- bt_shell_print("%s address: %s (%s)", desc, addr_str,
- addr_desc);
+ bt_shell_print("%s address: %s (%s)", desc, addr_str, addr_desc);
|
You may want to run clang-format on this change:
subsys/bluetooth/host/shell/bt.c#L365
subsys/bluetooth/host/shell/bt.c:365
- bt_shell_fprintf_info("%*sType 0x%02x: ",
- strlen(scan_response_label), "", data->type);
+ bt_shell_fprintf_info("%*sType 0x%02x: ", strlen(scan_response_label), "", data->type);
|
You may want to run clang-format on this change:
subsys/bluetooth/host/shell/bt.c#L380
subsys/bluetooth/host/shell/bt.c:380
- bt_shell_fprintf_warn(
- "BT_DATA_SVC_DATA16 data length too short (%u)",
- data->data_len);
+ bt_shell_fprintf_warn("BT_DATA_SVC_DATA16 data length too short (%u)",
+ data->data_len);
|
You may want to run clang-format on this change:
subsys/bluetooth/host/shell/bt.c#L401
subsys/bluetooth/host/shell/bt.c:401
- bt_shell_fprintf_warn(
- "BT_DATA_SVC_DATA32 data length too short (%u)",
- data->data_len);
+ bt_shell_fprintf_warn("BT_DATA_SVC_DATA32 data length too short (%u)",
+ data->data_len);
|
You may want to run clang-format on this change:
subsys/bluetooth/host/shell/bt.c#L423
subsys/bluetooth/host/shell/bt.c:423
- bt_shell_fprintf_warn(
- "BT_DATA_SVC_DATA128 data length too short (%u)",
- data->data_len);
+ bt_shell_fprintf_warn("BT_DATA_SVC_DATA128 data length too short (%u)",
+ data->data_len);
|
You may want to run clang-format on this change:
subsys/bluetooth/host/shell/bt.c#L579
subsys/bluetooth/host/shell/bt.c:579
- scan_response_label,
- le_addr, info->adv_type, info->rssi, name,
+ scan_response_label, le_addr, info->adv_type, info->rssi, name,
(info->adv_props & BT_GAP_ADV_PROP_CONNECTABLE) != 0,
(info->adv_props & BT_GAP_ADV_PROP_SCANNABLE) != 0,
(info->adv_props & BT_GAP_ADV_PROP_DIRECTED) != 0,
(info->adv_props & BT_GAP_ADV_PROP_SCAN_RESPONSE) != 0,
- (info->adv_props & BT_GAP_ADV_PROP_EXT_ADV) != 0,
- phy2str(info->primary_phy), phy2str(info->secondary_phy),
- info->interval, BT_CONN_INTERVAL_TO_US(info->interval),
- info->sid);
+ (info->adv_props & BT_GAP_ADV_PROP_EXT_ADV) != 0, phy2str(info->primary_phy),
+ phy2str(info->secondary_phy), info->interval,
+ BT_CONN_INTERVAL_TO_US(info->interval), info->sid);
if (scan_verbose_output) {
- bt_shell_info("%*s[SCAN DATA START - %s]",
- strlen(scan_response_label), "",
+ bt_shell_info("%*s[SCAN DATA START - %s]", strlen(scan_response_label), "",
|
You may want to run clang-format on this change:
subsys/bluetooth/host/shell/bt.c#L627
subsys/bluetooth/host/shell/bt.c:627
- bt_shell_print("Advertiser[%d] %p sent %d",
- bt_le_ext_adv_get_index(adv), adv, info->num_sent);
+ bt_shell_print("Advertiser[%d] %p sent %d", bt_le_ext_adv_get_index(adv), adv,
+ info->num_sent);
|
You may want to run clang-format on this change:
subsys/bluetooth/host/shell/bt.c#L638
subsys/bluetooth/host/shell/bt.c:638
- bt_shell_print("Advertiser[%d] %p scanned by %s",
- bt_le_ext_adv_get_index(adv), adv, str);
+ bt_shell_print("Advertiser[%d] %p scanned by %s", bt_le_ext_adv_get_index(adv), adv, str);
|
You may want to run clang-format on this change:
subsys/bluetooth/host/shell/bt.c#L651
subsys/bluetooth/host/shell/bt.c:651
- bt_shell_print("Advertiser[%d] %p connected by %s",
- bt_le_ext_adv_get_index(adv), adv, str);
+ bt_shell_print("Advertiser[%d] %p connected by %s", bt_le_ext_adv_get_index(adv), adv, str);
|
You may want to run clang-format on this change:
subsys/bluetooth/host/shell/bt.c#L663
subsys/bluetooth/host/shell/bt.c:663
- bt_shell_print("Advertiser[%d] %p RPA %s",
- adv_index, adv,
+ bt_shell_print("Advertiser[%d] %p RPA %s", adv_index, adv,
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
compliance.xml
|
6.08 KB |
|