From d38b0e9ecd443b6197d40092a5e519a4775fa2cf Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Wed, 23 Apr 2025 15:25:20 +0200 Subject: [PATCH] tests: BSIM: Bluetooth: Audio: Fix includes Updates the includes in a a few files to avoid including unused header files and include the ones that are used. Signed-off-by: Emil Gydesen --- tests/bsim/bluetooth/audio/src/bap_stream_rx.c | 4 +++- tests/bsim/bluetooth/audio/src/bap_stream_rx.h | 2 ++ tests/bsim/bluetooth/audio/src/bap_stream_tx.h | 2 +- tests/bsim/bluetooth/audio/src/ccp_call_control_client_test.c | 3 +-- tests/bsim/bluetooth/audio/src/ccp_call_control_server_test.c | 3 ++- tests/bsim/bluetooth/audio/src/ias_client_test.c | 1 - tests/bsim/bluetooth/audio/src/ias_test.c | 1 - tests/bsim/bluetooth/audio/src/tmap_server_test.c | 1 - 8 files changed, 9 insertions(+), 8 deletions(-) diff --git a/tests/bsim/bluetooth/audio/src/bap_stream_rx.c b/tests/bsim/bluetooth/audio/src/bap_stream_rx.c index be79b007eca..094fbf55cbd 100644 --- a/tests/bsim/bluetooth/audio/src/bap_stream_rx.c +++ b/tests/bsim/bluetooth/audio/src/bap_stream_rx.c @@ -4,6 +4,9 @@ * SPDX-License-Identifier: Apache-2.0 */ +#include +#include + #include #include #include @@ -11,7 +14,6 @@ #include #include "common.h" -#include LOG_MODULE_REGISTER(bap_stream_rx, LOG_LEVEL_INF); diff --git a/tests/bsim/bluetooth/audio/src/bap_stream_rx.h b/tests/bsim/bluetooth/audio/src/bap_stream_rx.h index 5db4c1e009c..635463788b9 100644 --- a/tests/bsim/bluetooth/audio/src/bap_stream_rx.h +++ b/tests/bsim/bluetooth/audio/src/bap_stream_rx.h @@ -4,6 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ +#include + #include #include #include diff --git a/tests/bsim/bluetooth/audio/src/bap_stream_tx.h b/tests/bsim/bluetooth/audio/src/bap_stream_tx.h index f482a1f7bcc..41bced6732a 100644 --- a/tests/bsim/bluetooth/audio/src/bap_stream_tx.h +++ b/tests/bsim/bluetooth/audio/src/bap_stream_tx.h @@ -7,7 +7,7 @@ #ifndef STREAM_TX_H #define STREAM_TX_H -#include +#include #include #include diff --git a/tests/bsim/bluetooth/audio/src/ccp_call_control_client_test.c b/tests/bsim/bluetooth/audio/src/ccp_call_control_client_test.c index b848dfc5df2..59f5a1b2820 100644 --- a/tests/bsim/bluetooth/audio/src/ccp_call_control_client_test.c +++ b/tests/bsim/bluetooth/audio/src/ccp_call_control_client_test.c @@ -4,7 +4,6 @@ * SPDX-License-Identifier: Apache-2.0 */ #include -#include #include #include @@ -89,7 +88,7 @@ static void test_main(void) setup_connectable_adv(&ext_adv); - printk("Advertising successfully started\n"); + LOG_INF("Advertising successfully started\n"); WAIT_FOR_FLAG(flag_connected); diff --git a/tests/bsim/bluetooth/audio/src/ccp_call_control_server_test.c b/tests/bsim/bluetooth/audio/src/ccp_call_control_server_test.c index ab8771f0927..e7435bfa7b3 100644 --- a/tests/bsim/bluetooth/audio/src/ccp_call_control_server_test.c +++ b/tests/bsim/bluetooth/audio/src/ccp_call_control_server_test.c @@ -3,8 +3,9 @@ * * SPDX-License-Identifier: Apache-2.0 */ -#include +#include #include +#include #include #include diff --git a/tests/bsim/bluetooth/audio/src/ias_client_test.c b/tests/bsim/bluetooth/audio/src/ias_client_test.c index 197a78b30c3..8203c7625fa 100644 --- a/tests/bsim/bluetooth/audio/src/ias_client_test.c +++ b/tests/bsim/bluetooth/audio/src/ias_client_test.c @@ -5,7 +5,6 @@ */ #include -#include #include #include diff --git a/tests/bsim/bluetooth/audio/src/ias_test.c b/tests/bsim/bluetooth/audio/src/ias_test.c index a951a5f57f3..4a4a77c8aba 100644 --- a/tests/bsim/bluetooth/audio/src/ias_test.c +++ b/tests/bsim/bluetooth/audio/src/ias_test.c @@ -4,7 +4,6 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include #include #include diff --git a/tests/bsim/bluetooth/audio/src/tmap_server_test.c b/tests/bsim/bluetooth/audio/src/tmap_server_test.c index afb031ce167..2a04377df55 100644 --- a/tests/bsim/bluetooth/audio/src/tmap_server_test.c +++ b/tests/bsim/bluetooth/audio/src/tmap_server_test.c @@ -4,7 +4,6 @@ * SPDX-License-Identifier: Apache-2.0 */ #include -#include #include #include