Re: [PATCH 1/2] avrcp: Fix printing incorrect order for avrcp control header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrei,

On Fri, Jan 31, 2014 at 4:36 AM, Andrei Emeltchenko
<Andrei.Emeltchenko.news@xxxxxxxxx> wrote:
> From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>
>
> ---
>  profiles/audio/avrcp.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
> index 5030ce1..bc5cab3 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;
>  }
> --
> 1.8.3.2

Pushed, thanks.


-- 
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux