Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91A5AC43382 for ; Thu, 27 Sep 2018 20:13:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2D949216E3 for ; Thu, 27 Sep 2018 20:13:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=yahoo.com.br header.i=@yahoo.com.br header.b="e23GMW01" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2D949216E3 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=yahoo.com.br Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727340AbeI1Cd1 (ORCPT ); Thu, 27 Sep 2018 22:33:27 -0400 Received: from sonic302-22.consmr.mail.gq1.yahoo.com ([98.137.68.148]:38245 "EHLO sonic302-22.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727295AbeI1Cd1 (ORCPT ); Thu, 27 Sep 2018 22:33:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.br; s=s2048; t=1538079207; bh=0IA22sytR9BgZP9P5aTau9WymlBT/WsNeAZI3KVn/cQ=; h=Date:From:To:Cc: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xEHxBzNURecTy7QTCXx9p_El8OE47XCLhM5AZifHHLJl1ARCf IWc4je85GJZM0ruCmuCWJLkZl9jTaUvZc9tm3sG.tAm_6YjWpm2UJRpTBIXc9tmYK92OiVLK_4O8 RuWO_xId7w.15urYtuqvUIU4kRShEfMEuUbyO_.Drnt9UjBD8VzsAyPi_yp9YN4m6mlkc1CCNpq4 K3HLmAd2aLnw0_NWCuoCsdE1_Yxt_46GoAA29o3cVG.GV80_fUU81zGRUB1NopBkaAyDaBMfrhBg ub8GMw296AT8VctUpfHIEx_e1Xj27fquQO1yCnPl0WAZ7mcT_4p2OrBN4AIFFEOMLTRd_ Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.gq1.yahoo.com with HTTP; Thu, 27 Sep 2018 20:13:27 +0000 Received: from 177.81.17.223 (EHLO giustizia.org) ([177.81.17.223]) by smtp401.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID a0b42890f20093135d91920e28fb057f; Thu, 27 Sep 2018 20:13:23 +0000 (UTC) Date: Thu, 27 Sep 2018 17:13:50 -0300 From: Luiz Carlos Ramos To: Marcel Holtmann Cc: Johan Hedberg , linux-bluetooth@vger.kernel.org Subject: Re: [PATCH] ath3k: add more information to error message Message-ID: <20180927201350.GA19318@giustizia.org> References: <20180907233603.GF3379@giustizia.org> <5CF8F067-C9A1-4028-847A-0B25DB00F61A@holtmann.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5CF8F067-C9A1-4028-847A-0B25DB00F61A@holtmann.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi, Marcel, On Thu, Sep 27, 2018 at 12:47:11PM +0200, Marcel Holtmann wrote: > Hi Luiz, > > > When there is an error in either ath3k_load_firmware() or > > ath3k_load_fwfile(), the inlined function ath3k_log_failed_loading() is > > called receiving the error returned and both the block size requested to > > load and the size actually loaded. These values are printed in an error > > message using the macro BT_ERR. > > > > This patch creates a new function which does the same but also receives > > the "count" variable, in order to show more information when a failing > > firmware loading happens. The calls to the older function were changed > > to the new one. > > > > This event is being monitored in a laptop with an adapter which > > identifies itself as 0cf3:0036, where sometimes there are errors in the > > firmware loading process. > > > > Signed-off-by: Luiz Carlos Ramos > > --- > > drivers/bluetooth/ath3k.c | 12 ++++++++++-- > > 1 file changed, 10 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/bluetooth/ath3k.c b/drivers/bluetooth/ath3k.c > > index 3a8c47efea55..ebc312cb4412 100644 > > --- a/drivers/bluetooth/ath3k.c > > +++ b/drivers/bluetooth/ath3k.c > > @@ -209,6 +209,14 @@ static inline void ath3k_log_failed_loading(int err, int len, int size) > > err, len, size); > > } > > > > +static inline void ath3k_log_failed_loading_2(int err, int len, int size, > > + int count) > > +{ > > + BT_ERR("%s err = %d, len = %d, size = %d, count = %d", > > + "Error in firmware loading", > > + err, len, size, count); > > +} > > + > > just change the the original ath3k_log_failed_loading to include the count parameter. > Ok, fine. I'll send it in a next message. Many thanks, Luiz