Skip to content

Commit

Permalink
Merge pull request #864 from skliper/fix863-debugmsg-events
Browse files Browse the repository at this point in the history
Fix #863, Add debug message from SendEvents
  • Loading branch information
yammajamma authored Sep 10, 2020
2 parents d4a4211 + 442aa36 commit 5c296a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fsw/cfe-core/ut-stubs/ut_evs_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <string.h>
#include "cfe.h"
#include "utstubs.h"
#include "uttools.h"

/*
** Functions
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 5c296a8

Please sign in to comment.