From nobody Wed Feb 21 20:32:37 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tg7Hp0Lzyz5BJGG; Wed, 21 Feb 2024 20:32:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tg7Hn6cpwz4D8S; Wed, 21 Feb 2024 20:32:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708547557; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lz3rDz5/2BT9tBNz5fOAdMcn7ff1zGMyCgTe+PUXF1I=; b=Ebf+oFxDvtFtvy0s7n6D25GbtFuY19DutzzPFSFFsXoBBlGFb2D4jrnPbXy+yZPg8gLb+v OnpFGRU+CuHojlSfcjUYdmW83eGYNAcouUWavcejQyD7ET29ghu535oIK/ghcT9uZY+GFz vmhwAg/Nr0LLxSZzZnDQrbxC2eHRmhtf6elC8Y93yLGzopL7brWPRKIg1IqJhbBpFYQdLR Oww+MNGlwue+MiHnzezNyDZuyvSfKRgXRcRsZxDQMhwrqEJWuC0g+fMDYVcZReT6vRzEp+ rYhDy44z4jIs+HTbw2nypMAJjtQZ1EU4ol1ySY8nvZnh224CTlCVfcLJu9ulMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708547557; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lz3rDz5/2BT9tBNz5fOAdMcn7ff1zGMyCgTe+PUXF1I=; b=WW1V6nhXBFaBrmVqI6yP9IJ0DEVVRNiJRVkW1LfZXgRfKJPj599P8iMuuV/cHq29wG90T8 KBy2R8nc8d0fmQey9aju9Rh6OGCe+7ELGfgEtX5VwrTwhKWcxQvDDYOvzX8RpxGa//o5VX uzF+grBw1mhA/r+6wLK9UKTfO7xunj4Kf3NG4Q71byW9hLVbpgvIsPdSKU6NgwJykTS3Bq 4VImupw9/DBSbnzxTDV1in9NTvBGjREMfcPL5oQvREuVXjvk6iDebFQNMHTeYbssDXjQHK b4hzVIJhUT3m1RGYO8ZMP40jMggiUtD6V4YK8Er+X6SADEnoKv/b8E/Wvunkdw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708547557; a=rsa-sha256; cv=none; b=Scqhmg4dr3Fp6BXA5oD0H/+wBiT9A492fiCXtehyb/HiN2Si6C7H0jErMJwQ25fOD2Bfzm M4c1vZ2Qc2JCsnN0Ry6TAXJ3tgSx3e7UWHdtkoO9E5gVMvwwkf1pWN5EB50Ejio1EQZ9j2 tNIhAx5dyu0pgADi2c0tXT67NNkhw0xlt+69aXzTUW8CKssLn5QPqqi0pOKBUuW+5E/WBQ IFXqv7YO5l6Xr83NlpKFRuoRrHm6VvDxMP4iRAo0BhEX2bbMtATWFSZ4pUMzosMbV8Zf1j fXaSBSrKzg3R9z0nu5eYMWwuoe/62wBjHT58YGW1IoyQrymkhmrmwEsgNsLxIw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tg7Hn5gpjz1HPC; Wed, 21 Feb 2024 20:32:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41LKWbQJ002304; Wed, 21 Feb 2024 20:32:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41LKWb2c002301; Wed, 21 Feb 2024 20:32:37 GMT (envelope-from git) Date: Wed, 21 Feb 2024 20:32:37 GMT Message-Id: <202402212032.41LKWb2c002301@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: 4f345989700f - main - bcm5974(4): Respect HID_DEBUG option and fix debugging printf List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4f345989700ff962e1f012d732881f1770946c9e Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=4f345989700ff962e1f012d732881f1770946c9e commit 4f345989700ff962e1f012d732881f1770946c9e Author: Vladimir Kondratyev AuthorDate: 2024-02-21 20:31:39 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-02-21 20:31:39 +0000 bcm5974(4): Respect HID_DEBUG option and fix debugging printf Sponsored by: Serenity Cyber Security MFC after: 1 month --- sys/dev/hid/bcm5974.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/hid/bcm5974.c b/sys/dev/hid/bcm5974.c index 749f1e7d4b2b..e76e3dfa805c 100644 --- a/sys/dev/hid/bcm5974.c +++ b/sys/dev/hid/bcm5974.c @@ -27,6 +27,8 @@ * SUCH DAMAGE. */ +#include "opt_hid.h" + #include #include #include @@ -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; }