diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2018-12-23 11:40:13 +0100 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2018-12-28 15:09:35 -0300 |
commit | 19d0011c5a502675ba317e5c926017501b15361a (patch) | |
tree | 68bbad688c1b703e41dcec22393510a7924a4d53 /tools/avinfo.c | |
parent | 2ba9c0942bdcc0b091bf646772352be76221efd7 (diff) | |
download | bluez-19d0011c5a502675ba317e5c926017501b15361a.tar.gz |
avinfo: Show Vendor Specific Data
Diffstat (limited to 'tools/avinfo.c')
-rw-r--r-- | tools/avinfo.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/avinfo.c b/tools/avinfo.c index 47fa1d2c5..61bcdab0b 100644 --- a/tools/avinfo.c +++ b/tools/avinfo.c @@ -214,6 +214,7 @@ static void print_vendor(a2dp_vendor_codec_t *vendor, uint8_t size) { uint32_t vendor_id; uint16_t codec_id; + int i; if (size < sizeof(*vendor)) { printf("\tMedia Codec: Vendor Specific A2DP Codec (broken)"); @@ -227,7 +228,12 @@ static void print_vendor(a2dp_vendor_codec_t *vendor, uint8_t size) printf("\n\t\tVendor ID 0x%08x", vendor_id); - printf("\n\t\tVendor Specific Codec ID 0x%04x\n", codec_id); + printf("\n\t\tVendor Specific Codec ID 0x%04x", codec_id); + + printf("\n\t\tVendor Specific Data:"); + for (i = 6; i < size; ++i) + printf(" 0x%.02x", ((unsigned char *)vendor)[i]); + printf("\n"); if (vendor_id == APTX_VENDOR_ID && codec_id == APTX_CODEC_ID) print_aptx((void *) vendor, size); |