Skip to content
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: Audio: Fix mcc.c conn logging statements #52429

Merged
merged 1 commit into from
Nov 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 36 additions & 35 deletions subsys/bluetooth/audio/mcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,8 @@ static uint8_t mcs_notify_handler(struct bt_conn *conn,

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not find MCS instance from conn %p", conn);
BT_DBG("Could not find MCS instance from conn %p",
(void *)conn);

return BT_GATT_ITER_CONTINUE;
}
Expand Down Expand Up @@ -1791,7 +1792,7 @@ int bt_mcc_read_player_name(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -1831,7 +1832,7 @@ int bt_mcc_read_icon_obj_id(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -1870,7 +1871,7 @@ int bt_mcc_read_icon_url(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -1908,7 +1909,7 @@ int bt_mcc_read_track_title(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -1946,7 +1947,7 @@ int bt_mcc_read_track_duration(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -1984,7 +1985,7 @@ int bt_mcc_read_track_position(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2022,7 +2023,7 @@ int bt_mcc_set_track_position(struct bt_conn *conn, int32_t pos)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2065,7 +2066,7 @@ int bt_mcc_read_playback_speed(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2103,7 +2104,7 @@ int bt_mcc_set_playback_speed(struct bt_conn *conn, int8_t speed)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2146,7 +2147,7 @@ int bt_mcc_read_seeking_speed(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2185,7 +2186,7 @@ int bt_mcc_read_segments_obj_id(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2223,7 +2224,7 @@ int bt_mcc_read_current_track_obj_id(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2266,7 +2267,7 @@ int bt_mcc_set_current_track_obj_id(struct bt_conn *conn, uint64_t obj_id)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2308,7 +2309,7 @@ int bt_mcc_read_next_track_obj_id(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2351,7 +2352,7 @@ int bt_mcc_set_next_track_obj_id(struct bt_conn *conn, uint64_t obj_id)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2393,7 +2394,7 @@ int bt_mcc_read_parent_group_obj_id(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2431,7 +2432,7 @@ int bt_mcc_read_current_group_obj_id(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2474,7 +2475,7 @@ int bt_mcc_set_current_group_obj_id(struct bt_conn *conn, uint64_t obj_id)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2517,7 +2518,7 @@ int bt_mcc_read_playing_order(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2555,7 +2556,7 @@ int bt_mcc_set_playing_order(struct bt_conn *conn, uint8_t order)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2598,7 +2599,7 @@ int bt_mcc_read_playing_orders_supported(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2636,7 +2637,7 @@ int bt_mcc_read_media_state(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2675,7 +2676,7 @@ int bt_mcc_send_cmd(struct bt_conn *conn, const struct mpl_cmd *cmd)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2724,7 +2725,7 @@ int bt_mcc_read_opcodes_supported(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2763,7 +2764,7 @@ int bt_mcc_send_search(struct bt_conn *conn, const struct mpl_search *search)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2806,7 +2807,7 @@ int bt_mcc_read_search_results_obj_id(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -2845,7 +2846,7 @@ int bt_mcc_read_content_control_id(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -3234,7 +3235,7 @@ int bt_mcc_otc_read_object_metadata(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -3266,7 +3267,7 @@ int bt_mcc_otc_read_icon_object(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -3298,7 +3299,7 @@ int bt_mcc_otc_read_track_segments_object(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -3331,7 +3332,7 @@ int bt_mcc_otc_read_current_track_object(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -3364,7 +3365,7 @@ int bt_mcc_otc_read_next_track_object(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -3397,7 +3398,7 @@ int bt_mcc_otc_read_parent_group_object(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down Expand Up @@ -3432,7 +3433,7 @@ int bt_mcc_otc_read_current_group_object(struct bt_conn *conn)

mcs_inst = lookup_inst_by_conn(conn);
if (mcs_inst == NULL) {
BT_DBG("Could not lookup mcs_inst from conn %p", conn);
BT_DBG("Could not lookup mcs_inst from conn %p", (void *)conn);

return -EINVAL;
} else if (mcs_inst->busy) {
Expand Down