svn commit: r330403 - head/sys/dev/iicbus
Ian Lepore
ian at FreeBSD.org
Sun Mar 4 19:20:12 UTC 2018
Author: ian
Date: Sun Mar 4 19:20:11 2018
New Revision: 330403
URL: https://svnweb.freebsd.org/changeset/base/330403
Log:
Add calls to the new clock_dbgprint_xxx() functions.
Modified:
head/sys/dev/iicbus/ds1307.c
Modified: head/sys/dev/iicbus/ds1307.c
==============================================================================
--- head/sys/dev/iicbus/ds1307.c Sun Mar 4 19:17:32 2018 (r330402)
+++ head/sys/dev/iicbus/ds1307.c Sun Mar 4 19:20:11 2018 (r330403)
@@ -359,6 +359,7 @@ ds1307_gettime(device_t dev, struct timespec *ts)
bct.mon = data[DS1307_MONTH] & DS1307_MONTH_MASK;
bct.year = data[DS1307_YEAR] & DS1307_YEAR_MASK;
+ clock_dbgprint_bcd(sc->sc_dev, CLOCK_DBG_READ, &bct);
return (clock_bcd_to_ts(&bct, ts, sc->sc_use_ampm));
}
@@ -379,6 +380,7 @@ ds1307_settime(device_t dev, struct timespec *ts)
*/
ts->tv_sec -= utc_offset();
clock_ts_to_bcd(ts, &bct, sc->sc_use_ampm);
+ clock_dbgprint_bcd(sc->sc_dev, CLOCK_DBG_WRITE, &bct);
/* If the chip is in AM/PM mode, adjust hour and set flags as needed. */
if (sc->sc_use_ampm) {
More information about the svn-src-all
mailing list