Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp126765ybt; Mon, 6 Jul 2020 05:44:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydH3+IjN1tTdUAOEhkdYxpHY6eCqtAkD7NlT+sUlG01FR9o2S7swY8asiUZqrZmxK14cVe X-Received: by 2002:aa7:c504:: with SMTP id o4mr54735993edq.311.1594039485855; Mon, 06 Jul 2020 05:44:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594039485; cv=none; d=google.com; s=arc-20160816; b=bYjZsUymlvYXHOR6N5Nb0lS2gCL1HHi6UQ7ACJMfHIpXTwF3jCMraKy61CLP6AUWEp daVM23PhQiRghCSB7380sVXqnD+OngGYtygRmKoKi/wtjCB5r/lZrHLkUyU+BuXkSdDn nPYRM/RrE9pRVVPGAY8jjOETrI8gZz9d6pg5nHKRg5dtFvcqGQrAo/p1Lpkqh1sbGa9k 3l3WQD0Ejp/ArEmlUkIOmQ8I+5/MjroXcsPOxUC7chaomp5aWhbSh3QbR4YkGi2YzaX5 xgRNOJoajmCZr5wnBW9rFXa1FwoIWAcE1JqoBhbFViBpssVgYrutq8iekT1zAEYjtnP4 XdUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=O9W348Iq/4rL8SUdN58bPjUsGUWJHNapZM7uLf30WkU=; b=ETUOE1rEcQlNlQ4x+5GXXM06WaBYSXyp/HZKaAtvylRH+fthPbugxTgbljrXMHqHkF gQfVutSOen9Sb7VhG06yDCmU3ATHlbsgOombCjm9eEsSlLg+AawKq6S89xI5NqfP/7QQ r/nma3ym1demcbcmnJSfbd/UDIOWHll3UFBbeG28bFiDd3UI6Hd98z7ZhUrcvs2M/t7X yu4oCTBnINL3e+sdC+6Su6ACG9G8mjZmSabE2rVMrwEnIRY9K93Rnraed3Z1YxZWs0kM O0D0heBN3jiZkjgT5nKqwx3++4uh1p/wcI8GY0ivr4/O6TFlC1IQkZOSiRPjz3JcMCOm 5Ubw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 lu26si8292000ejb.72.2020.07.06.05.44.23; Mon, 06 Jul 2020 05:44:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729127AbgGFMlk (ORCPT + 99 others); Mon, 6 Jul 2020 08:41:40 -0400 Received: from vps-vb.mhejs.net ([37.28.154.113]:43542 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728973AbgGFMli (ORCPT ); Mon, 6 Jul 2020 08:41:38 -0400 Received: from MUA by vps-vb.mhejs.net with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.93.0.4) (envelope-from ) id 1jsQRB-0001gI-Tm; Mon, 06 Jul 2020 14:41:33 +0200 Subject: Re: [PATCH] HID: logitech-hidpp: avoid repeated "multiplier = " log messages To: =?UTF-8?Q?Filipe_La=c3=adns?= Cc: Jiri Kosina , Benjamin Tissoires , Harry Cutts , Peter Hutterer , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org References: <7d2c980f071487cecfd1534adb7561b33d922af3.1593970340.git.mail@maciej.szmigiero.name> <2f76f069f2078b3d51533f772f1094dcc03685a3.camel@gmail.com> From: "Maciej S. Szmigiero" Autocrypt: addr=mail@ma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19RoabEscBVF+qo5dJgics4cDEgh2BcL2o/dvz/L9OA9P13qi3WezT wVIr6UXMdljFlZtJds3lM8kciYHzzOPhCJUso+5+XTdsskw59+DKdf8+/Uex6slH2gpskeqe WPo5xzWbg+p1048AFCdlJgPEHNiB3aaP8e6+VkQkzIyRtcgyoQR8HTyjJdSL2jgKv8Ly5oxA KYo2YYv7Je7/xbBIP/y9EGPG41vH90lknZwgFs6iDEp49boj6MgSk5vXN9ibxfgVxIzelfNO YiQDaf+ZP0KhIHoWg0hJy7i6IF2XUTlg/4heSd0I3cVJypkF89gQr82bdkXf5DDHPBOR0N7M xbtTSGjTTxw5DGAYobE5CRocypoNzH7xSqQ3p523lhS9wDxx+5wP9AwCFrrVGMR6V2+OTixk WQddat1pyxP0u2qVz0L1QQ0rhS73wImbXwBItBr+4cP7hBmNWzHdvunpcEquWAzzEqEoHpqD mA== Message-ID: <6202799b-f887-a867-94b3-915607956ceb@maciej.szmigiero.name> Date: Mon, 6 Jul 2020 14:41:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <2f76f069f2078b3d51533f772f1094dcc03685a3.camel@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06.07.2020 14:38, Filipe Laíns wrote: > On Sun, 2020-07-05 at 19:34 +0200, Maciej S. Szmigiero wrote: >> These messages appear each time the mouse wakes from sleep, in my >> case >> (Logitech M705), every minute or so. >> Let's downgrade them to the "debug" level so they don't fill the >> kernel log >> by default. >> >> While we are at it, let's make clear that this is a wheel multiplier >> (and >> not, for example, XY movement multiplier). >> >> Fixes: 4435ff2f09a2 ("HID: logitech: Enable high-resolution scrolling >> on Logitech mice") >> Cc: stable@vger.kernel.org >> Signed-off-by: Maciej S. Szmigiero >> --- >> Sending again since the previous message bounced for most recipients. >> >> drivers/hid/hid-logitech-hidpp.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid- >> logitech-hidpp.c >> index 1e1cf8eae649..b8b53dc95e86 100644 >> --- a/drivers/hid/hid-logitech-hidpp.c >> +++ b/drivers/hid/hid-logitech-hidpp.c >> @@ -3146,7 +3146,7 @@ static int hi_res_scroll_enable(struct >> hidpp_device *hidpp) >> multiplier = 1; >> >> hidpp->vertical_wheel_counter.wheel_multiplier = multiplier; >> - hid_info(hidpp->hid_dev, "multiplier = %d\n", multiplier); >> + hid_dbg(hidpp->hid_dev, "wheel multiplier = %d\n", multiplier); >> return 0; >> } >> > > I have seen this being useful in some cases, however I do not have a > strong opinion on it. Peter would know better. Well, the message is not being removed, only hidden by default, so it doesn't fill the kernel log. One can still enable it at runtime if wanted. > Cheers, > Filipe Laíns > Thanks, Maciej