Skip to content

Commit

Permalink
Fix format string specifiers for queue names
Browse files Browse the repository at this point in the history
  • Loading branch information
celskeggs committed Jan 17, 2025
1 parent 334c525 commit 926c84f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Fw/Comp/ActiveComponentBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ namespace Fw {
taskName = this->getObjName();
#else
char taskNameChar[FW_TASK_NAME_BUFFER_SIZE];
(void)snprintf(taskNameChar,sizeof(taskNameChar),"ActComp_%d",Os::Task::getNumTasks());
(void)snprintf(taskNameChar,sizeof(taskNameChar),"ActComp_%" PRI_FwSizeType,Os::Task::getNumTasks());
taskName = taskNameChar;
#endif
// Cooperative threads tasks externalize the task loop, and as such use the state machine as their task function
Expand Down
2 changes: 1 addition & 1 deletion Fw/Comp/QueuedComponentBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace Fw {
queueName = this->m_objName;
#else
char queueNameChar[FW_QUEUE_NAME_BUFFER_SIZE];
(void)snprintf(queueNameChar,sizeof(queueNameChar),"CompQ_%d",Os::Queue::getNumQueues());
(void)snprintf(queueNameChar,sizeof(queueNameChar),"CompQ_%" PRI_FwSizeType,Os::Queue::getNumQueues());
queueName = queueNameChar;
#endif
return this->m_queue.create(queueName, depth, msgSize);
Expand Down

0 comments on commit 926c84f

Please sign in to comment.