Skip to content

Commit

Permalink
Bluetooth: CAP: Fix log warning for meta pointer
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Thalley committed Dec 2, 2024
1 parent d04b3e0 commit 1ca9f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/bluetooth/audio/cap_initiator.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static bool cap_initiator_valid_metadata(const uint8_t meta[], size_t meta_len)
};
int err;

LOG_DBG("meta %p len %zu", meta, meta_len);
LOG_DBG("meta %p len %zu", (void *)meta, meta_len);

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

0 comments on commit 1ca9f88

Please sign in to comment.