Skip to content

Commit 1d11205

Browse files
Fix #2446, clarify startup token count message
1 parent 39d765f commit 1d11205

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎modules/es/fsw/src/cfe_es_apps.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,9 @@ int32 CFE_ES_ParseFileEntry(const char **TokenList, uint32 NumTokens)
357357
*/
358358
if (NumTokens < 8)
359359
{
360-
CFE_ES_WriteToSysLog("%s: Invalid ES Startup file entry: %u\n", __func__, (unsigned int)NumTokens);
360+
CFE_ES_WriteToSysLog("%s: Invalid ES Startup file entry: NumTokens = %u, expected at least 8\n",
361+
__func__,
362+
(unsigned int)NumTokens);
361363
return CFE_ES_BAD_ARGUMENT;
362364
}
363365

‎modules/es/ut-coverage/es_UT.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,7 @@ void TestApps(void)
659659
/* Test parsing the startup script with an invalid argument passed in */
660660
ES_ResetUnitTest();
661661
UtAssert_INT32_EQ(CFE_ES_ParseFileEntry(NULL, 0), CFE_ES_BAD_ARGUMENT);
662+
CFE_UtAssert_PRINTF("NumTokens = 0, expected at least 8");
662663

663664
/* Test application loading and creation with a task creation failure */
664665
ES_ResetUnitTest();

0 commit comments

Comments
 (0)