Skip to content

Commit d38b0e9

Browse files
Thalleykartben
authored andcommitted
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 <[email protected]>
1 parent b04d638 commit d38b0e9

File tree

8 files changed

+9
-8
lines changed

8 files changed

+9
-8
lines changed

tests/bsim/bluetooth/audio/src/bap_stream_rx.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
#include <stdbool.h>
8+
#include <string.h>
9+
710
#include <zephyr/bluetooth/audio/bap.h>
811
#include <zephyr/bluetooth/iso.h>
912
#include <zephyr/logging/log.h>
1013
#include <zephyr/logging/log_core.h>
1114
#include <zephyr/net_buf.h>
1215

1316
#include "common.h"
14-
#include <string.h>
1517

1618
LOG_MODULE_REGISTER(bap_stream_rx, LOG_LEVEL_INF);
1719

tests/bsim/bluetooth/audio/src/bap_stream_rx.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
#include <stdbool.h>
8+
79
#include <zephyr/bluetooth/audio/bap.h>
810
#include <zephyr/bluetooth/iso.h>
911
#include <zephyr/net_buf.h>

tests/bsim/bluetooth/audio/src/bap_stream_tx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#ifndef STREAM_TX_H
88
#define STREAM_TX_H
99

10-
#include <stdint.h>
10+
#include <stdbool.h>
1111

1212
#include <zephyr/bluetooth/conn.h>
1313
#include <zephyr/bluetooth/audio/bap.h>

tests/bsim/bluetooth/audio/src/ccp_call_control_client_test.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66
#include <stddef.h>
7-
#include <stdint.h>
87

98
#include <zephyr/autoconf.h>
109
#include <zephyr/bluetooth/audio/ccp.h>
@@ -89,7 +88,7 @@ static void test_main(void)
8988

9089
setup_connectable_adv(&ext_adv);
9190

92-
printk("Advertising successfully started\n");
91+
LOG_INF("Advertising successfully started\n");
9392

9493
WAIT_FOR_FLAG(flag_connected);
9594

tests/bsim/bluetooth/audio/src/ccp_call_control_server_test.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
6-
#include <stdint.h>
6+
#include <stdbool.h>
77
#include <stddef.h>
8+
#include <stdint.h>
89
#include <stdio.h>
910

1011
#include <zephyr/autoconf.h>

tests/bsim/bluetooth/audio/src/ias_client_test.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66

77
#include <stddef.h>
8-
#include <stdint.h>
98

109
#include <zephyr/autoconf.h>
1110
#include <zephyr/bluetooth/bluetooth.h>

tests/bsim/bluetooth/audio/src/ias_test.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <stdint.h>
87
#include <stddef.h>
98

109
#include <zephyr/autoconf.h>

tests/bsim/bluetooth/audio/src/tmap_server_test.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66
#include <stddef.h>
7-
#include <stdint.h>
87

98
#include <zephyr/autoconf.h>
109
#include <zephyr/bluetooth/audio/bap.h>

0 commit comments

Comments
 (0)