Skip to content

Commit

Permalink
Fix #85, use proper printf conversion for pipe ID
Browse files Browse the repository at this point in the history
Using the macro makes it work whether strict or simple types are used.
  • Loading branch information
jphickey committed Feb 26, 2021
1 parent 031de3d commit ded1076
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 on pipe %lu, status %i", __LINE__,
(unsigned int)CFE_SB_MsgIdToValue(pCmd->Stream), CFE_RESOURCEID_TO_ULONG(TO_LAB_Global.Tlm_pipe), (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 ded1076

Please sign in to comment.