diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-01-31 14:36:16 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-02-02 07:49:00 -0800 |
commit | 0985cc2400118848f0ddb0c85560e2156bbc6ce2 (patch) | |
tree | c732201f65ca7bc09a0734619b6d607a39752b70 /profiles | |
parent | 6d9fcff748453bccfb9301cf046a7a8256d6072b (diff) | |
download | bluez-0985cc2400118848f0ddb0c85560e2156bbc6ce2.tar.gz |
avrcp: Fix printing incorrect order for avrcp control header
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/audio/avrcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c index 595218081..3a1d8b09c 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -1658,7 +1658,7 @@ static size_t handle_vendordep_pdu(struct avctp *conn, uint8_t transaction, } DBG("AVRCP PDU 0x%02X, company 0x%06X len 0x%04X", - pdu->pdu_id, company_id, pdu->params_len); + pdu->pdu_id, company_id, ntohs(pdu->params_len)); pdu->packet_type = 0; pdu->rsvd = 0; @@ -1755,7 +1755,7 @@ size_t avrcp_handle_vendor_reject(uint8_t *code, uint8_t *operands) pdu->params[0] = AVRCP_STATUS_INTERNAL_ERROR; DBG("rejecting AVRCP PDU 0x%02X, company 0x%06X len 0x%04X", - pdu->pdu_id, company_id, pdu->params_len); + pdu->pdu_id, company_id, ntohs(pdu->params_len)); return AVRCP_HEADER_LENGTH + 1; } |