bluetooth: shell: Fix using wrong field

Fix using data instead of meta field.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2023-01-17 16:42:34 +02:00 committed by Fabio Baltieri
commit 69a9ae61b4

View file

@ -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));
}
}