mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
bcm5974(4): Respect HID_DEBUG option and fix debugging printf
Sponsored by: Serenity Cyber Security MFC after: 1 month
This commit is contained in:
parent
c85e6a5c22
commit
4f34598970
1 changed files with 3 additions and 1 deletions
|
|
@ -27,6 +27,8 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "opt_hid.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/bus.h>
|
||||
#include <sys/endian.h>
|
||||
|
|
@ -826,7 +828,7 @@ bcm5974_intr(void *context, void *data, hid_size_t len)
|
|||
if ((len < params->tp->offset + fsize) ||
|
||||
((len - params->tp->offset) % fsize) != 0) {
|
||||
DPRINTFN(BCM5974_LLEVEL_INFO, "Invalid length: %d, %x, %x\n",
|
||||
len, sc->tp_data[0], sc->tp_data[1]);
|
||||
len, params->tp->offset, fsize);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue