]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
twsi: compile in support for debug messages, disabled by default
authorAndriy Gapon <avg@FreeBSD.org>
Fri, 26 Nov 2021 06:52:56 +0000 (08:52 +0200)
committerAndriy Gapon <avg@FreeBSD.org>
Fri, 26 Nov 2021 14:04:23 +0000 (16:04 +0200)
commita2793d6182256b8edf647c11c642ad3c7c83809e
tree88e3bdc00227aed74a72b89854828e7947102c8a
parentf00bc54f62c455c7ed44afee736c3c64873a305a
twsi: compile in support for debug messages, disabled by default

Debug messages can now be enabled per driver instance via a new sysctl.
Also, debug messages in TWSI_READ and TWSI_WRITE require debug level
greater than 1 as they are mostly redundant because callers of those
functions already log most interesting results.

NB: the twsi drivers call their device iichb, so the new sysctl will
appear under dev.iichb.N.

MFC after: 1 week
sys/dev/iicbus/twsi/twsi.c
sys/dev/iicbus/twsi/twsi.h