summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@freescale.com>2008-07-10 14:00:15 -0500
committerWolfgang Denk <wd@denx.de>2008-07-10 22:12:09 +0200
commit4109df6f75fc00ab7da56d286ba50149a0d16a69 (patch)
treef2f2bca858b24e5278a12044b8a7cc37131df8ef /drivers/rtc
parent4b13860e746b65e796213f2c97de8a80db8b68be (diff)
silence misc printf formatting compiler warnings
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/ds1374.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/ds1374.c b/drivers/rtc/ds1374.c
index f6bb2965a4b..1533b60f18c 100644
--- a/drivers/rtc/ds1374.c
+++ b/drivers/rtc/ds1374.c
@@ -141,7 +141,7 @@ int rtc_get (struct rtc_time *tm){
rel = -1;
}
- DEBUGR ("Get RTC s since 1.1.1970: %d\n", time1);
+ DEBUGR ("Get RTC s since 1.1.1970: %ld\n", time1);
to_tm(time1, tm); /* To Gregorian Date */
@@ -176,7 +176,7 @@ void rtc_set (struct rtc_time *tmp){
tmp->tm_mday, tmp->tm_hour,
tmp->tm_min, tmp->tm_sec);
- DEBUGR ("Set RTC s since 1.1.1970: %d (0x%02x)\n", time, time);
+ DEBUGR ("Set RTC s since 1.1.1970: %ld (0x%02lx)\n", time, time);
/* write to RTC_TOD_CNT_BYTEn_ADDR */
for (i = 0; i <= 3; i++) {