Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5690650ybf; Thu, 5 Mar 2020 05:22:35 -0800 (PST) X-Google-Smtp-Source: ADFU+vtbrq4fOZN2sP0dBE8IB7ZxSWAMrf9zscU8mc0cS/hpFiTd7MqEEW3H0qLV2WE9fxzfBLFW X-Received: by 2002:a9d:7607:: with SMTP id k7mr6657117otl.205.1583414555490; Thu, 05 Mar 2020 05:22:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583414555; cv=none; d=google.com; s=arc-20160816; b=LVYv+9Y/6G6j91D86A695wUlyFgYahYYrYGmSke8rSr5hKF0zVWvYio1hSM+l18MIW BntUGt0IGGEJeoVzH3R3gzw70t1cn6mChHSHJnCKX31o+3BmW1DZt0AKADnywaCQCEbY kMQpIKXIm6P4BNBkQSkQrusFMMpjRA1mhJ5jQLGHgKo+gdRAFaJvBI8rnFDqm1gfsP29 XnICXSpZMx0goFZo5tTYuVMhK997NrpL/rBY5kHXWOzJQ/KGQysmMe5SSvP9bJtBqUyd R5J8wVV+DRuLayRUVLtfI2pEbJEbSRDrg7X7lkk2aYwK/Dl7RFqRb5mMp75WW9mnJDth dYcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=jk4AoXXqyQGbLelM5SZHAeL152s4sqYGUzCmicTTOvQ=; b=eNWlSHzfb1aF40jlVsBBWlW8Lrt36XahJeOtE15h8ZBT5jw1JmLul4SNhhCfNHLnSE wzyhEqSlnSJgeXPAea/gmmuq3rHFhhpMbmXTJSvLydGLvEPjs36lwnOstpnYdWs9CM1s p+2HCoYhamlkOOMZGbPgrSANIbA9ViCKDzMP8JsgE8ver7kM4PA3S/P5XprBeJNZnZXt KbYK2Z5vy9/6erxJUViYko6/UsatWc+WklEMHekYAg3CPl5qfoKauvQhfezF9C5bzJJG G1QTSiAc1U56mcmx4vjp5LQXL6WXEcO6DYtn1TTnTqM3s0T/oKF53a/mAw/wXEN3s4Ds WoXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s207si3408917oih.255.2020.03.05.05.22.22; Thu, 05 Mar 2020 05:22:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726059AbgCENWV convert rfc822-to-8bit (ORCPT + 99 others); Thu, 5 Mar 2020 08:22:21 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:49499 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726048AbgCENWV (ORCPT ); Thu, 5 Mar 2020 08:22:21 -0500 Received: from marcel-macbook.fritz.box (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id A4A80CECEB; Thu, 5 Mar 2020 14:31:47 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: [PATCH] Bluetooth: Make spurious error message debug From: Marcel Holtmann In-Reply-To: <20200305131424.381031-1-szymon.janc@codecoup.pl> Date: Thu, 5 Mar 2020 14:22:19 +0100 Cc: linux-bluetooth@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: References: <20200305131424.381031-1-szymon.janc@codecoup.pl> To: Szymon Janc X-Mailer: Apple Mail (2.3608.60.0.2.5) Sender: linux-bluetooth-owner@vger.kernel.org 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 > --- > net/bluetooth/hci_event.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c > index a40ed31f6eb8..c69267f1951e 100644 > --- a/net/bluetooth/hci_event.c > +++ b/net/bluetooth/hci_event.c > @@ -5277,7 +5277,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"); > + BT_DBG("%s: advertising data len corrected (%u->%u)", > + hdev->name, len, real_len); can we use bt_dev_dbg please. Regards Marcel