Skip to content

Commit 3e0c08c

Browse files
Thalleykartben
authored andcommitted
Bluetooth: CAP: Fix log warning for meta pointer
Fixes the following warning: <wrn> cbprintf_package: cbprintf_package_convert: (unsigned) char * used for %p argument. It's recommended to cast it to void * because it may cause misbehavior in certain configurations. String:"%s: meta %p len %zu" argument:1 Signed-off-by: Emil Gydesen <[email protected]>
1 parent d64293b commit 3e0c08c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/audio/cap_initiator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static bool cap_initiator_valid_metadata(const uint8_t meta[], size_t meta_len)
119119
};
120120
int err;
121121

122-
LOG_DBG("meta %p len %zu", meta, meta_len);
122+
LOG_DBG("meta %p len %zu", (void *)meta, meta_len);
123123

124124
err = bt_audio_data_parse(meta, meta_len, data_func_cb, &metadata_param);
125125
if (err != 0 && err != -ECANCELED) {

0 commit comments

Comments
 (0)