]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpio: sysfs: demote warning messages on invalid user input to debug
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 21 Oct 2024 18:57:17 +0000 (20:57 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 31 Oct 2024 12:34:13 +0000 (13:34 +0100)
commit37d5a6d6f406322ed0850fc2af1d377aced16340
tree0e2908b5556eb7cdd52967bcf5eb38f1f0f45e2f
parent01aab9fd0a838a6195863b0b019eed648f41edb2
gpio: sysfs: demote warning messages on invalid user input to debug

We should not emit a non-ratelimited warning everytime a user passes an
invalid value to /sys/class/gpio/export as it's an easy way to spam the
kernel log. Change the relevant messages to pr_debug_ratelimited().

Link: https://lore.kernel.org/r/20241021185717.96449-1-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib-sysfs.c