projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d17207e
)
rtc: mc146818: Correct alarm message for day alarm
author
Bin Meng
<bmeng.cn@gmail.com>
Tue, 17 Oct 2017 15:19:33 +0000
(08:19 -0700)
committer
Tom Rini
<trini@konsulko.com>
Mon, 23 Oct 2017 21:25:40 +0000
(17:25 -0400)
RTC_CONFIG_D register contains the day within the month to generate
an alarm, not the month. This corrects the printf to indicate it.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
drivers/rtc/mc146818.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/mc146818.c
b/drivers/rtc/mc146818.c
index 4df9eda086f7ae9127c00496954e12bffe2a9e00..21705c84782f15a868289aeb0a1c74d5b1a36052 100644
(file)
--- a/
drivers/rtc/mc146818.c
+++ b/
drivers/rtc/mc146818.c
@@
-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: m
onth
: %02x hour: %02x min: %02x sec: %02x\n",
+ printf("Alarms: m
day
: %02x hour: %02x min: %02x sec: %02x\n",
mc146818_read8(RTC_CONFIG_D) & 0x3f,
mc146818_read8(RTC_HOURS_ALARM),
mc146818_read8(RTC_MINUTES_ALARM),