Message ID | 20191030071652.8130-4-kai.heng.feng@canonical.com |
---|---|
State | New |
Headers | show |
Series | Suppress "hid_field_extract() called with n (192) > 32!" message floods | expand |
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 39eba8106d40..81df03e1bb24 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -1314,8 +1314,8 @@ u32 hid_field_extract(const struct hid_device *hid, u8 *report, unsigned offset, unsigned n) { if (n > 32) { - hid_warn(hid, "hid_field_extract() called with n (%d) > 32! (%s)\n", - n, current->comm); + hid_warn_once(hid, "%s() called with n (%d) > 32! (%s)\n", + __func__, n, current->comm); n = 32; }