Skip to content

Commit

Permalink
Merge pull request nasa#990 from jphickey/fix-988-printf-warnings
Browse files Browse the repository at this point in the history
Fix nasa#988, add casts on printf calls
  • Loading branch information
astrogeco authored Nov 3, 2020
2 parents 180559b + 7047db6 commit df2de6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fsw/cfe-core/src/sb/cfe_sb_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ int32 CFE_SB_SubscribeFull(CFE_SB_MsgId_t MsgId,
{
CFE_EVS_SendEventWithAppID(CFE_SB_HASHCOLLISION_EID, CFE_EVS_EventType_DEBUG, CFE_SB.AppId,
"Msg hash collision: MsgId = 0x%x, collisions = %u",
(unsigned int)CFE_SB_MsgIdToValue(MsgId), Collisions);
(unsigned int)CFE_SB_MsgIdToValue(MsgId), (unsigned int)Collisions);
}

return CFE_SUCCESS;
Expand Down
2 changes: 1 addition & 1 deletion modules/sbr/unit-test-coverage/test_cfe_sbr_map_direct.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void Test_SBR_Map_Direct(void)
count++;
}
}
UtPrintf("Valid route id's encountered in performance loop: %u", count);
UtPrintf("Valid route id's encountered in performance loop: %u", (unsigned int)count);
}

/* Main unit test routine */
Expand Down
2 changes: 1 addition & 1 deletion modules/sbr/unit-test-coverage/test_cfe_sbr_map_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void Test_SBR_Map_Hash(void)
count++;
}
}
UtPrintf("Valid route id's encountered in performance loop: %u", count);
UtPrintf("Valid route id's encountered in performance loop: %u", (unsigned int)count);
}

/* Main unit test routine */
Expand Down

0 comments on commit df2de6c

Please sign in to comment.