Skip to content

Commit

Permalink
Fix #85, Remove numeric pipe ID from event printf
Browse files Browse the repository at this point in the history
Numeric pipe ID is not really relevant and fails when strict types
are used. This makes "RemovePkt" consistent with "AddPkt" and takes
it out of the event string.
  • Loading branch information
jphickey committed Feb 26, 2021
1 parent 031de3d commit f0164b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fsw/src/to_lab_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,8 @@ int32 TO_LAB_RemovePacket(const TO_LAB_RemovePacketCmd_t *data)
status = CFE_SB_Unsubscribe(pCmd->Stream, TO_LAB_Global.Tlm_pipe);
if (status != CFE_SUCCESS)
CFE_EVS_SendEvent(TO_REMOVEPKT_ERR_EID, CFE_EVS_EventType_ERROR,
"L%d TO Can't Unsubscribe to Stream 0x%x on pipe %d, status %i", __LINE__,
(unsigned int)CFE_SB_MsgIdToValue(pCmd->Stream), TO_LAB_Global.Tlm_pipe, (int)status);
"L%d TO Can't Unsubscribe to Stream 0x%x, status %i", __LINE__,
(unsigned int)CFE_SB_MsgIdToValue(pCmd->Stream), (int)status);
else
CFE_EVS_SendEvent(TO_REMOVEPKT_INF_EID, CFE_EVS_EventType_INFORMATION, "L%d TO RemovePkt 0x%x", __LINE__,
(unsigned int)CFE_SB_MsgIdToValue(pCmd->Stream));
Expand Down

0 comments on commit f0164b4

Please sign in to comment.