mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 13:43:28 +00:00
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>
This commit is contained in:
parent
d17207ea83
commit
6087be2ba6
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue