• Jiri Kosina's avatar
    HID: remove redundant WARN_ON()s in order not to scare users · c4124c9b
    Jiri Kosina authored
    The WARN_ON() in implement() and extract() spit out stacktraces and
    a lot of other information that might make users think that there is
    something seriously wrong with the system. WARN_ON() should not be
    deliberately triggerable by userspace application, which these can be.
    Usually this WARN_ON() triggers when hid2hci utility is sending the
    data that don't correspond to the device's report descriptor.
    
    Convert these messages to more friendly printk().
    Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
    c4124c9b
hid-core.c 24.8 KB