STM32 RTC: Fix some errors when RTC debug is enabled

This commit is contained in:
Gregory Nutt 2016-04-03 09:52:08 -06:00
parent 6b3b12ee0a
commit 9f0df8180a
2 changed files with 6 additions and 6 deletions

View File

@ -612,7 +612,7 @@ static int stm32_cancelalarm(FAR struct rtc_lowerhalf_s *lower, int alarmid)
/* ID0-> Alarm A; ID1 -> Alarm B */ /* ID0-> Alarm A; ID1 -> Alarm B */
DEBUGASSERT(lower != NULL); DEBUGASSERT(lower != NULL);
DEBUGASSERT(alarminfo->id == RTC_ALARMA || alarminfo->id == RTC_ALARMB); DEBUGASSERT(alarmid == RTC_ALARMA || alarmid == RTC_ALARMB);
# warning Missing logic # warning Missing logic
return -ENOSYS; return -ENOSYS;

View File

@ -144,10 +144,10 @@
/* Debug ****************************************************************************/ /* Debug ****************************************************************************/
#ifdef CONFIG_DEBUG_RTC #ifdef CONFIG_DEBUG_RTC
# define rtcdbg rtcdbg # define rtcdbg dbg
# define rtcvdbg rtcvdbg # define rtcvdbg vdbg
# define rtclldbg rctlldbg # define rtclldbg lldbg
# define rtcllvdbg rtcllvdbg # define rtcllvdbg llvdbg
#else #else
# define rtcdbg(x...) # define rtcdbg(x...)
# define rtcvdbg(x...) # define rtcvdbg(x...)
@ -1398,7 +1398,7 @@ int stm32_rtc_setalarm(FAR struct alm_setalarm_s *alminfo)
break; break;
default: default:
rtcvdbg("error unknown %d\n", alminfo->asr_id); rtcvdbg("ERROR: Invalid ALARM%d\n", alminfo->as_id);
break; break;
} }