You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The CFE_SB_PipeId_t type is not a simple/plain integer if strict types are enabled. This trips up a printf statement in TO_LAB here where it tries to print the TO_LAB_Global.Tlm_pipe value:
/home/joe/code/cfecfs/github/apps/to_lab/fsw/src/to_lab_app.c:507:77: error: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘CFE_SB_PipeId_t’ [-Werror=format=]
507 | "L%d TO Can't Unsubscribe to Stream 0x%x on pipe %d, status %i", __LINE__,
| ~^
| |
| int
508 | (unsigned int)CFE_SB_MsgIdToValue(pCmd->Stream), TO_LAB_Global.Tlm_pipe, (int)status);
| ~~~~~~~~~~~~~~~~~~~~~~
| |
| CFE_SB_PipeId_t
Describe the solution you'd like
Use the CFE_RESOURCEID_TO_ULONG() macro to get the simple value, and use %lu conversion specifier in printf.
Requester Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered:
jphickey
added a commit
to jphickey/to_lab
that referenced
this issue
Feb 26, 2021
Is your feature request related to a problem? Please describe.
The
CFE_SB_PipeId_t
type is not a simple/plain integer if strict types are enabled. This trips up a printf statement in TO_LAB here where it tries to print theTO_LAB_Global.Tlm_pipe
value:Describe the solution you'd like
Use the
CFE_RESOURCEID_TO_ULONG()
macro to get the simple value, and use%lu
conversion specifier in printf.Requester Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered: