From 69a9ae61b434cb5bafc5256f06f4f9c52e110697 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Tue, 17 Jan 2023 16:42:34 +0200 Subject: [PATCH] bluetooth: shell: Fix using wrong field Fix using data instead of meta field. Signed-off-by: Andrei Emeltchenko --- subsys/bluetooth/shell/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/shell/audio.c b/subsys/bluetooth/shell/audio.c index 123490970dd..ccf016d7256 100644 --- a/subsys/bluetooth/shell/audio.c +++ b/subsys/bluetooth/shell/audio.c @@ -381,7 +381,7 @@ static void print_codec(const struct bt_codec *codec) codec->meta[i].data.type, codec->meta[i].data.data_len); shell_hexdump(ctx_shell, codec->meta[i].data.data, - codec->data[i].data.data_len - + codec->meta[i].data.data_len - sizeof(codec->meta[i].data.type)); } }