]> Git Repo - J-linux.git/commitdiff
HID: logitech-hidpp: avoid repeated "multiplier = " log messages
authorMaciej S. Szmigiero <[email protected]>
Sun, 5 Jul 2020 17:34:57 +0000 (19:34 +0200)
committerJiri Kosina <[email protected]>
Tue, 7 Jul 2020 10:40:26 +0000 (12:40 +0200)
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: [email protected]
Signed-off-by: Maciej S. Szmigiero <[email protected]>
Reviewed-by: Harry Cutts <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
drivers/hid/hid-logitech-hidpp.c

index 1e1cf8eae649e0aeda50d6d641d8a6552d95c5e4..b8b53dc95e86b7b0f3ad96ae02b1cd5a159d8eff 100644 (file)
@@ -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;
 }
 
This page took 0.060685 seconds and 4 git commands to generate.