Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #863, Add debug message from SendEvents #864

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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