Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3795370pxy; Mon, 26 Apr 2021 09:55:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWkx3cRX+Hha8DlzaWWRALNfClOkDiSshUvV4awSEFPPBt4vjhJjIX9uLRIspTMI5FzDHB X-Received: by 2002:a05:6402:b41:: with SMTP id bx1mr22633468edb.105.1619456100419; Mon, 26 Apr 2021 09:55:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619456100; cv=none; d=google.com; s=arc-20160816; b=Gllu2OwNAjVdIPMETUOid6Gj3XyS3BTMptrRfmoA+0HXx/0Z6uxM/On3oTSjqwXP6/ YWz2kqEySLGbeqfp7ZmV728xuGTGxq3wwJiTrnW3gcPhaVWIBN54MXjTll3gfSRJGSSN 7jypkujIdNEipxokPyWf0RC0Zxv/Np/E9imHrOBKNrGlilg9RMRMmc+xjRbbeH1o42bJ aiurOCUPqDMcy6YqcQcbw+JugjtTHr1ISHNlw018jA1lysdYwTLh/3nb9NUU3qYmNKc8 Q2O443dapBmewThOzrXt2f/Tq8OwfZJF/90H44rI5dE7TMfcjWaLdWAt5eFcirJlCLNe nO1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=pbFv6AOfkht634uZ5AZKAfif7CqKGu3PwOG3KlZlJGI=; b=bgYphGdr/iQshCFYwHH50GEjqAIiRXtajo7S9WjdsLN7bnZrZjaVJOmB/C2N48sGeW CrnHd8uUrYDaBp4RwySUrkmaqv5NH6ovhrDx0pandJQphl0Uux1ZNQsHEhioPNgCQVfM Z5j+gZ6nNa1RwxW2fE0E1qpe79ut67dLFXcrD4xhj6IhLqJqI+xsckvEIG2CtpU5yo8m VPEEccLqFW3DxXk1aA7XBclLJnoHc6RPh1mkHeZngQRRrkYu0xt8/a+1MmISAIp9sSt0 WEefCTvOe1ePbzEuC0niCR61A5YjgvRMkGBIENkTUOuU6iI7nh+G48e4OujxFl1RQx0l hlPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m3si13326598ejl.510.2021.04.26.09.53.48; Mon, 26 Apr 2021 09:55:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234719AbhDZQwk convert rfc822-to-8bit (ORCPT + 99 others); Mon, 26 Apr 2021 12:52:40 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:60695 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234610AbhDZQwk (ORCPT ); Mon, 26 Apr 2021 12:52:40 -0400 Received: from marcel-macbook.holtmann.net (p4fefc624.dip0.t-ipconnect.de [79.239.198.36]) by mail.holtmann.org (Postfix) with ESMTPSA id 60165CECEA; Mon, 26 Apr 2021 18:59:45 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: [PATCH v2] Bluetooth: Make spurious error message debug From: Marcel Holtmann In-Reply-To: <20210426144419.451157-1-szymon.janc@codecoup.pl> Date: Mon, 26 Apr 2021 18:51:56 +0200 Cc: Bluetooth Kernel Mailing List , stable@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: <68043295-4E52-4C3C-9023-B7FC272072B6@holtmann.org> References: <20210426144419.451157-1-szymon.janc@codecoup.pl> To: Szymon Janc X-Mailer: Apple Mail (2.3654.60.0.2.21) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Szymon, > Even with rate limited reporting this is very spammy and since > it is remote device that is providing bogus data there is no > need to report this as error. > > [72454.143336] bt_err_ratelimited: 10 callbacks suppressed > [72454.143337] Bluetooth: hci0: advertising data len corrected > [72454.296314] Bluetooth: hci0: advertising data len corrected > [72454.892329] Bluetooth: hci0: advertising data len corrected > [72455.051319] Bluetooth: hci0: advertising data len corrected > [72455.357326] Bluetooth: hci0: advertising data len corrected > [72455.663295] Bluetooth: hci0: advertising data len corrected > [72455.787278] Bluetooth: hci0: advertising data len corrected > [72455.942278] Bluetooth: hci0: advertising data len corrected > [72456.094276] Bluetooth: hci0: advertising data len corrected > [72456.249137] Bluetooth: hci0: advertising data len corrected > [72459.416333] bt_err_ratelimited: 13 callbacks suppressed > [72459.416334] Bluetooth: hci0: advertising data len corrected > [72459.721334] Bluetooth: hci0: advertising data len corrected > [72460.011317] Bluetooth: hci0: advertising data len corrected > [72460.327171] Bluetooth: hci0: advertising data len corrected > [72460.638294] Bluetooth: hci0: advertising data len corrected > [72460.946350] Bluetooth: hci0: advertising data len corrected > [72461.225320] Bluetooth: hci0: advertising data len corrected > [72461.690322] Bluetooth: hci0: advertising data len corrected > [72462.118318] Bluetooth: hci0: advertising data len corrected > [72462.427319] Bluetooth: hci0: advertising data len corrected > [72464.546319] bt_err_ratelimited: 7 callbacks suppressed > [72464.546319] Bluetooth: hci0: advertising data len corrected > [72464.857318] Bluetooth: hci0: advertising data len corrected > [72465.163332] Bluetooth: hci0: advertising data len corrected > [72465.278331] Bluetooth: hci0: advertising data len corrected > [72465.432323] Bluetooth: hci0: advertising data len corrected > [72465.891334] Bluetooth: hci0: advertising data len corrected > [72466.045334] Bluetooth: hci0: advertising data len corrected > [72466.197321] Bluetooth: hci0: advertising data len corrected > [72466.340318] Bluetooth: hci0: advertising data len corrected > [72466.498335] Bluetooth: hci0: advertising data len corrected > [72469.803299] bt_err_ratelimited: 10 callbacks suppressed > > Signed-off-by: Szymon Janc > Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=203753 > Cc: stable@vger.kernel.org > --- > net/bluetooth/hci_event.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c > index 5e99968939ce..2a27d5764ba0 100644 > --- a/net/bluetooth/hci_event.c > +++ b/net/bluetooth/hci_event.c > @@ -5476,8 +5476,8 @@ static void process_adv_report(struct hci_dev *hdev, u8 type, bdaddr_t *bdaddr, > > /* Adjust for actual length */ > if (len != real_len) { > - bt_dev_err_ratelimited(hdev, "advertising data len corrected %u -> %u", > - len, real_len); > + bt_dev_dbg(hdev, "advertising data len corrected %u->%u", > + len, real_len); > len = real_len; > } then don’t even bother with bt_dev_dbg either. That is also just eating up cycles. Regards Marcel