Skip to content

Commit

Permalink
Fix nasa#863, Add debug message from SendEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Sep 4, 2020
1 parent 08f6eab commit 442aa36
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 442aa36

Please sign in to comment.