Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Mar 2018 19:23:48 +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: r330404 - head/sys/dev/iicbus
Message-ID:  <201803041923.w24JNmS4023380@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Sun Mar  4 19:23:48 2018
New Revision: 330404
URL: https://svnweb.freebsd.org/changeset/base/330404

Log:
  Add calls to the new clock_dbgprint_xxx() functions.

Modified:
  head/sys/dev/iicbus/ds13rtc.c

Modified: head/sys/dev/iicbus/ds13rtc.c
==============================================================================
--- head/sys/dev/iicbus/ds13rtc.c	Sun Mar  4 19:20:11 2018	(r330403)
+++ head/sys/dev/iicbus/ds13rtc.c	Sun Mar  4 19:23:48 2018	(r330404)
@@ -395,6 +395,7 @@ ds13rtc_gettime(device_t dev, struct timespec *ts)
 	if (sc->use_century)
 		bct.year += (tregs.month & DS13xx_B_MONTH_CENTURY) ? 0x100 : 0;
 
+	clock_dbgprint_bcd(sc->sc_dev, CLOCK_DBG_READ, &bct); 
 	err = clock_bcd_to_ts(&bct, ts, sc->use_ampm);
 
 	return (err);
@@ -422,6 +423,7 @@ ds13rtc_settime(device_t dev, struct timespec *ts)
 		return (write_timeword(sc, ts->tv_sec));
 
 	clock_ts_to_bcd(ts, &bct, sc->use_ampm);
+	clock_dbgprint_bcd(sc->sc_dev, CLOCK_DBG_WRITE, &bct); 
 
 	/* If the chip is in AMPM mode deal with the PM flag. */
 	pmflags = 0;



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