summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2017-10-17 08:19:33 -0700
committerTom Rini <trini@konsulko.com>2017-10-23 17:25:40 -0400
commit6087be2ba60af08b586237337b2a3ed7fd4f2d21 (patch)
tree5022a016b5f35f7dbeaf6b04c4997748a63002c9
parentd17207ea83475597d122bfd8ed7f48ab6acedc63 (diff)
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. Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
-rw-r--r--drivers/rtc/mc146818.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/mc146818.c b/drivers/rtc/mc146818.c
index 4df9eda086..21705c8478 100644
--- 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: 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),