Author: brd Date: Fri Dec 27 04:11:14 2019 New Revision: 356115 URL: https://svnweb.freebsd.org/changeset/base/356115
Log: [gpioths] Fix GPIOTHS_DEBUG Chase the removal of dev from gpioths_dht_readbytes() in r355540. Reviewed by: ian Approved by: will (mentor) Differential Revision: https://reviews.freebsd.org/D22926 Modified: head/sys/dev/gpio/gpioths.c Modified: head/sys/dev/gpio/gpioths.c ============================================================================== --- head/sys/dev/gpio/gpioths.c Fri Dec 27 04:07:51 2019 (r356114) +++ head/sys/dev/gpio/gpioths.c Fri Dec 27 04:11:14 2019 (r356115) @@ -220,10 +220,10 @@ gpioths_dht_readbytes(struct gpioths_softc *sc) #ifdef GPIOTHS_DEBUG /* Debug bits */ for (i = 0; i < GPIOTHS_DHT_CYCLES; i++) - device_printf(dev, "%d: %d %d\n", i, calibrations[i], + device_printf(sc->dev, "%d: %d %d\n", i, calibrations[i], intervals[i]); - device_printf(dev, "len=%d, data=%x, crc=%x/%x\n", avglen, value, crc, + device_printf(sc->dev, "len=%d, data=%x, crc=%x/%x\n", avglen, value, crc, calc); #endif /* GPIOTHS_DEBUG */ _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"