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;
_______________________________________________
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"

Reply via email to