Skip to content

Commit

Permalink
Fix #2590, Use proper printf format for size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
pepepr08 committed Aug 14, 2024
1 parent dab2f42 commit 7e6504d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sb/fsw/src/cfe_sb_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ CFE_SB_Buffer_t *CFE_SB_AllocateMessageBuffer(size_t MsgSize)
if (MsgSize > CFE_MISSION_SB_MAX_SB_MSG_SIZE)
{
CFE_ES_GetAppName(AppName, AppId, sizeof(AppName));
CFE_ES_WriteToSysLog("%s %s: Failed, requested size %ld larger than allowed %d\n",
CFE_ES_WriteToSysLog("%s %s: Failed, requested size %zu larger than allowed %d\n",
AppName, __func__, MsgSize, CFE_MISSION_SB_MAX_SB_MSG_SIZE);
return NULL;
}
Expand Down

0 comments on commit 7e6504d

Please sign in to comment.