From 442aa36a98e180552a4e72542395119e5baf61ce Mon Sep 17 00:00:00 2001 From: Jacob Hageman Date: Fri, 4 Sep 2020 11:34:01 -0400 Subject: [PATCH] Fix #863, Add debug message from SendEvents --- fsw/cfe-core/ut-stubs/ut_evs_stubs.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fsw/cfe-core/ut-stubs/ut_evs_stubs.c b/fsw/cfe-core/ut-stubs/ut_evs_stubs.c index c3711b2a7..492d6c772 100644 --- a/fsw/cfe-core/ut-stubs/ut_evs_stubs.c +++ b/fsw/cfe-core/ut-stubs/ut_evs_stubs.c @@ -35,6 +35,7 @@ #include #include "cfe.h" #include "utstubs.h" +#include "uttools.h" /* ** Functions @@ -112,6 +113,8 @@ int32 CFE_EVS_SendEvent(uint16 EventID, UT_Stub_RegisterContextGenericArg(UT_KEY(CFE_EVS_SendEvent), EventType); UT_Stub_RegisterContext(UT_KEY(CFE_EVS_SendEvent), Spec); + UtDebug("CFE_EVS_SendEvent: %u - %s", EventID, Spec); + int32 status; va_list va; @@ -163,6 +166,8 @@ int32 CFE_EVS_SendTimedEvent(CFE_TIME_SysTime_t Time, int32 status; va_list va; + UtDebug("CFE_EVS_SendTimedEvent: %u - %s", EventID, Spec); + va_start(va, Spec); status = UT_DefaultStubImplWithArgs(__func__, UT_KEY(CFE_EVS_SendTimedEvent), CFE_SUCCESS, va); va_end(va); @@ -247,6 +252,8 @@ int32 CFE_EVS_SendEventWithAppID(uint16 EventID, int32 status; va_list va; + UtDebug("CFE_EVS_SendEventWithAppID: %u - %s", EventID, Spec); + va_start(va, Spec); status = UT_DefaultStubImplWithArgs(__func__, UT_KEY(CFE_EVS_SendEventWithAppID), CFE_SUCCESS, va); va_end(va);