Skip to contentSkip to conversation

rtc: mc146818: Correct alarm message for day alarm

PATCH In review Bin Meng 2 participants 3 messages Oct 17, 2017 – Oct 24, 2017 Real time clock (RTC)

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 1/1 rtc: mc146818: Correct alarm message for day alarm

RTC_CONFIG_D register contains the day within the month to generate an alarm, not the month. This corrects the printf to indicate it.

---

 drivers/rtc/mc146818.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/mc146818.c +1 -1
index 4df9eda..21705c8 100644
@@ -100,7 +100,7 @@ static int mc146818_get(struct rtc_time *tmp)
 #ifdef RTC_DEBUG
 	printf("Get RTC year: %02x mon/cent: %02x mday: %02x wday: %02x hr: %02x min: %02x sec: %02x\n",
 	       year, mon, mday, wday, hour, min, sec);
-	printf("Alarms: month: %02x hour: %02x min: %02x sec: %02x\n",
+	printf("Alarms: mday: %02x hour: %02x min: %02x sec: %02x\n",
 	       mc146818_read8(RTC_CONFIG_D) & 0x3f,
 	       mc146818_read8(RTC_HOURS_ALARM),
 	       mc146818_read8(RTC_MINUTES_ALARM),
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH 1/1 rtc: mc146818: Correct alarm message for day alarm

Hi Tom,

Quoted 9 lines · Bin Meng

RTC_CONFIG_D register contains the day within the month to generate an alarm, not the month. This corrects the printf to indicate it.

---

 drivers/rtc/mc146818.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Will you take this for v2017.11?

Regards,
Bin

#2 lore raw
In reply to Bin Meng
Quoted 4 lines · Bin Meng

RTC_CONFIG_D register contains the day within the month to generate an alarm, not the month. This corrects the printf to indicate it.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171024/34f42d7f/attachment.sig>