summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-sensorhub.c
diff options
context:
space:
mode:
authorDoug Zobel <dzobel1@motorola.com>2014-09-24 08:53:44 -0500
committerDoug Zobel <dzobel1@motorola.com>2014-09-26 15:33:44 -0500
commitda60db0a6aeb77f2622a7cc49b4af2dddfac40ab (patch)
tree483663a11d7167d286dcf8a78e2580b167e13ef9 /drivers/rtc/rtc-sensorhub.c
parent5fe013f79b93a67e8aa070172bd1ab35c51c3ab4 (diff)
downloadolio-linux-3.10-da60db0a6aeb77f2622a7cc49b4af2dddfac40ab.tar.xz
olio-linux-3.10-da60db0a6aeb77f2622a7cc49b4af2dddfac40ab.zip
IKXCLOCK-3996 alarm: Add alarm scheduling debug
Add alarm scheduling debugging in case issue with alarms being scheduled in the past is seen again.
Diffstat (limited to 'drivers/rtc/rtc-sensorhub.c')
-rw-r--r--drivers/rtc/rtc-sensorhub.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-sensorhub.c b/drivers/rtc/rtc-sensorhub.c
index f4e713d741f..16f95758f93 100644
--- a/drivers/rtc/rtc-sensorhub.c
+++ b/drivers/rtc/rtc-sensorhub.c
@@ -223,6 +223,9 @@ static int rtc_sensorhub_rtc_set_time(struct device *p_dev,
"set time, but failed to set M4 clock!\n");
return -EIO;
}
+ dev_dbg(p_dev, "Set RTC time to %d-%02d-%02d %02d:%02d:%02d UTC (%ld)\n",
+ p_tm->tm_year + 1900, p_tm->tm_mon + 1, p_tm->tm_mday,
+ p_tm->tm_hour, p_tm->tm_min, p_tm->tm_sec, sec);
return 0;
}