Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Mar 2018 19:26:47 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r330406 - head/sys/dev/iicbus
Message-ID:  <201803041926.w24JQl01023578@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803041926.w24JQl01023578>