svn commit: r330406 - head/sys/dev/iicbus
Ian Lepore
ian at FreeBSD.org
Sun Mar 4 19:26:48 UTC 2018
Author: ian
Date: Sun Mar 4 19:26:47 2018
New Revision: 330406
URL: https://svnweb.freebsd.org/changeset/base/330406
Log:
Add calls to the new clock_dbgprint_xxx() functions.
Modified:
head/sys/dev/iicbus/nxprtc.c
Modified: head/sys/dev/iicbus/nxprtc.c
==============================================================================
--- head/sys/dev/iicbus/nxprtc.c Sun Mar 4 19:25:54 2018 (r330405)
+++ head/sys/dev/iicbus/nxprtc.c Sun Mar 4 19:26:47 2018 (r330406)
@@ -608,6 +608,7 @@ nxprtc_gettime(device_t dev, struct timespec *ts)
sc->flags |= SC_F_CPOL;
}
+ clock_dbgprint_bcd(sc->dev, CLOCK_DBG_READ, &bct);
err = clock_bcd_to_ts(&bct, ts, sc->use_ampm);
ts->tv_sec += utc_offset();
@@ -648,6 +649,7 @@ nxprtc_settime(device_t dev, struct timespec *ts)
ts->tv_sec -= utc_offset();
ts->tv_nsec = 0;
clock_ts_to_bcd(ts, &bct, sc->use_ampm);
+ clock_dbgprint_bcd(sc->dev, CLOCK_DBG_WRITE, &bct);
/* On 8563 set the century based on the polarity seen when reading. */
cflag = 0;
More information about the svn-src-all
mailing list