Skip to content

Commit 6167442

Browse files
author
Jacob Hageman
committed
Fix #1325, UT updates for syslog function prefix
1 parent faff2dc commit 6167442

File tree

4 files changed

+78
-137
lines changed

4 files changed

+78
-137
lines changed

modules/core_private/ut-stubs/src/ut_osprintf_stubs.c

Lines changed: 60 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -41,123 +41,64 @@
4141
*/
4242

4343
const char *UT_OSP_MESSAGES[] = {
44-
[0] = NULL, /* Message 0 is reserved */
45-
/* ES Startup: Error Mounting Volatile(RAM) Volume. EC = 0x~ */
46-
[UT_OSP_MOUNT_VOLATILE] = "ES Startup: Error Mounting Volatile(RAM) Volume. EC = 0x%08X\n",
47-
/* CFE_ES_ExitApp: CORE Application CFE_ES Had a Runtime Error. */
48-
[UT_OSP_CORE_RUNTIME] = "CFE_ES_ExitApp: CORE Application %s Had a Runtime Error.\n",
49-
/* ES Startup: OS_TaskCreate error creating core App: CFE_TBL: EC = 0x~ */
50-
[UT_OSP_CORE_APP_CREATE] = "ES Startup: OS_TaskCreate error creating core App: %s: EC = 0x%08X\n",
51-
/* ES Startup: Error returned when calling function: CFE_TBL_EarlyInit: EC = 0x~ */
52-
[UT_OSP_EARLYINIT] = "ES Startup: Error returned when calling function: %s: EC = 0x%08X\n",
53-
/* ES Startup: Could not find Library Init symbol:TST_LIB_Init. EC = 0x~ */
54-
[UT_OSP_FIND_LIBRARY] = "ES Startup: Could not find Library Init symbol:%s. EC = %d\n",
55-
/* POWER ON RESET due to max proc resets (HW Spec Cmd). */
56-
[UT_OSP_POR_MAX_HW_SPECIAL] = "POWER ON RESET due to max proc resets (HW Spec Cmd).\n",
57-
/* CFE_ES_ExitChildTask Error: Cannot Call from a cFE App Main Task. ID = ~ */
58-
[UT_OSP_CANNOT_CALL_APP_MAIN] = "CFE_ES_ExitChildTask Error: Cannot Call from a cFE App Main Task. ID = %d\n",
59-
/* ES Startup: bad function pointer ( table entry = 1). */
60-
[UT_OSP_FUNCTION_POINTER] = "ES Startup: bad function pointer ( table entry = %d).\n",
61-
/* ES Startup: Error Reading Startup file. EC = 0x~ */
62-
[UT_OSP_STARTUP_READ] = "ES Startup: Error Reading Startup file. EC = 0x%08X\n",
63-
/* PROCESSOR RESET called from CFE_ES_ResetCFE (Commanded). */
64-
[UT_OSP_PROC_RESET_COMMANDED] = "PROCESSOR RESET called from CFE_ES_ResetCFE (Commanded).\n",
65-
/* ES SharedData Mutex Take Err Stat=0x~,App=1,Func=TestAPI,Line=12345 */
66-
[UT_OSP_MUTEX_TAKE] = "ES SharedData Mutex Take Err Stat=0x%x,Func=%s,Line=%d\n",
67-
/* ES Startup: Startup Sync failed - Applications may not have all started */
68-
[UT_OSP_STARTUP_SYNC_FAIL_1] = "ES Startup: Startup Sync failed - Applications may not have all started\n",
69-
/* Warning: System Log full, log entry discarded. */
70-
[UT_OSP_SYSTEM_LOG_FULL] = "Warning: System Log full, log entry discarded.\n",
71-
/* ES Startup: ES Startup File Line is too long: 137 bytes. */
72-
[UT_OSP_FILE_LINE_TOO_LONG] = "ES Startup: **WARNING** File Line %u is malformed: %u bytes, %u tokens.\n",
73-
/* ES Startup: Load Shared Library Init Error. */
74-
[UT_OSP_SHARED_LIBRARY_INIT] = "ES Startup: Load Shared Library Init Error = 0x%08x\n",
75-
/* ES Startup: Error Removing Volatile(RAM) Volume. EC = 0x~ */
76-
[UT_OSP_REMOVE_VOLATILE] = "ES Startup: Error Removing Volatile(RAM) Volume. EC = 0x%08X\n",
77-
/* POWER ON RESET due to other cause (See Subtype). */
78-
[UT_OSP_POR_OTHER] = "POWER ON RESET due to other cause (See Subtype).\n",
79-
/* ES Startup: Error Determining Blocks Free on Volume. EC = 0x~ */
80-
[UT_OSP_DETERMINE_BLOCKS] = "ES Startup: Error Determining Blocks Free on Volume. EC = 0x%08X\n",
81-
/* ES Startup: Startup Sync failed - Applications may not have all initialized */
82-
[UT_OSP_STARTUP_SYNC_FAIL_2] = "ES Startup: Startup Sync failed - Applications may not have all initialized\n",
83-
/* ES Startup: No free library slots available */
84-
[UT_OSP_LIBRARY_SLOTS] = "ES Startup: No free library slots available\n",
85-
/* ES Startup: Unable to extract filename from path: ut/filename.gz. */
86-
[UT_OSP_EXTRACT_FILENAME_UT] = "ES Startup: Unable to extract filename from path: %s.\n",
87-
/* ES Startup: Application path plus file name length (~) exceeds max allowed (~) */
88-
[UT_OSP_APP_PATH_FILE_TOO_LONG] =
89-
"ES Startup: Application path plus file name length (%d) exceeds max allowed (%d)\n",
90-
/* ES Startup: Error Re-Formating Volatile(RAM) Volume. EC = 0x~ */
91-
[UT_OSP_REFORMAT_VOLATILE] = "ES Startup: Error Re-Formating Volatile(RAM) Volume. EC = 0x%08X\n",
92-
/* ES Startup: Could not load cFE application file:ut/filename.x. EC = 0x~ */
93-
[UT_OSP_EXTRACT_FILENAME_UT55] = "ES Startup: Could not load file:%s. EC = 0x%08X\n",
94-
/* ES Startup: Unable to extract filename from path: ut46/ */
95-
[UT_OSP_EXTRACT_FILENAME_UT46] = "ES Startup: Unable to extract filename from path: %s.\n",
96-
/* ES Startup: No free application slots available */
97-
[UT_OSP_NO_FREE_APP_SLOTS] = "ES Startup: No free application slots available\n",
98-
/* ES Startup: Unable to extract filename from path: ut57/ */
99-
[UT_OSP_EXTRACT_FILENAME_UT57] = "ES Startup: Unable to extract filename from path: %s.\n",
100-
/* ES SharedData Mutex Give Err Stat=0x~,App=1,Func=TestAPI,Line=98765 */
101-
[UT_OSP_MUTEX_GIVE] = "ES SharedData Mutex Give Err Stat=0x%x,Func=%s,Line=%d\n",
102-
/* ES Startup: Could not find symbol:EntryPoint. EC = 0x~ */
103-
[UT_OSP_CANNOT_FIND_SYMBOL] = "ES Startup: Could not find symbol:%s. EC = 0x%08X\n",
104-
/* ES Startup: Error Initializing Volatile(RAM) Volume. EC = 0x~ */
105-
[UT_OSP_INIT_VOLATILE] = "ES Startup: Error Initializing Volatile(RAM) Volume. EC = 0x%08X\n",
106-
/* ES:Application Init Failed,RC=0x~ */
107-
[UT_OSP_APP_INIT] = "ES:Application Init Failed,RC=0x%08X\n",
108-
/* POWER ON RESET due to max proc resets (Commanded). */
109-
[UT_OSP_POR_MAX_PROC_RESETS] = "POWER ON RESET due to max proc resets (Commanded).\n",
110-
/* CFE_ES_RestartApp: Cannot Restart Application appName, It is not running. */
111-
[UT_OSP_CANNOT_RESTART_APP] = "CFE_ES_RestartApp: Cannot Restart Application %s, It is not running.\n",
112-
/* ES Startup: Insufficent Free Space on Volatile Disk, Reformatting. */
113-
[UT_OSP_INSUFF_FREE_SPACE] = "ES Startup: Insufficent Free Space on Volatile Disk, Reformatting.\n",
114-
/* ES Startup: Could not load cFE Shared Library */
115-
[UT_OSP_LOAD_SHARED_LIBRARY] = "ES Startup: Could not load cFE Shared Library\n",
116-
/* POWER ON RESET due to HW Special Cmd (Hw Spec Cmd). */
117-
[UT_OSP_POR_HW_SPECIAL] = "POWER ON RESET due to HW Special Cmd (Hw Spec Cmd).\n",
118-
/* ES Startup: AppCreate Error: TaskCreate AppName Failed. EC = 0x~! */
119-
[UT_OSP_APP_CREATE] = "ES Startup: AppCreate Error: TaskCreate %s Failed. EC = 0x%08X!\n",
120-
/* ES Startup: Error Creating Volatile(RAM) Volume. EC = 0x~ */
121-
[UT_OSP_CREATE_VOLATILE] = "ES Startup: Error Creating Volatile(RAM) Volume. EC = 0x%08X\n",
122-
/* ES Startup: Failed to unload APP: AppName. EC = 0x~ */
123-
[UT_OSP_MODULE_UNLOAD_FAILED] = "ES Startup: Failed to unload: %s. EC = 0x%08X\n",
124-
/* POWERON RESET called from CFE_ES_ResetCFE (Commanded). */
125-
[UT_OSP_POR_COMMANDED] = "POWERON RESET called from CFE_ES_ResetCFE (Commanded).\n",
126-
/* ES Startup: Error Re-Mounting Volatile(RAM) Volume. EC = 0x~ */
127-
[UT_OSP_REMOUNT_VOLATILE] = "ES Startup: Error Re-Mounting Volatile(RAM) Volume. EC = 0x%08X\n",
128-
/* CFE_ES_ExitApp, Cannot Exit CORE Application CFE_ES */
129-
[UT_OSP_CORE_APP_EXIT] = "CFE_ES_ExitApp, Cannot Exit CORE Application %s\n",
130-
/* ES Startup: Opened ES App Startup file: */
131-
[UT_OSP_ES_APP_STARTUP_OPEN] = "ES Startup: Opened ES App Startup file: %s\n",
132-
/* CFE_ES_ExitApp: CORE Application CFE_ES Had an Init Error. */
133-
[UT_OSP_CORE_INIT] = "CFE_ES_ExitApp: CORE Application %s Had an Init Error.\n",
134-
/* PROCESSOR RESET due to Hardware Special Command (HW Spec Cmd). */
135-
[UT_OSP_PROC_RESET_MAX_HW_SPECIAL] = "PROCESSOR RESET due to Hardware Special Command (HW Spec Cmd).\n",
136-
/* ES:Error reading cmd pipe,RC=0x~ */
137-
[UT_OSP_COMMAND_PIPE] = "ES:Error reading cmd pipe,RC=0x%08X\n",
138-
/* ES Startup: Error Un-Mounting Volatile(RAM) Volume. EC = 0x~ */
139-
[UT_OSP_UNMOUNT_VOLATILE] = "ES Startup: Error Un-Mounting Volatile(RAM) Volume. EC = 0x%08X\n",
140-
/* ES Startup: Error: ES_TaskTable slot in use at task creation! */
141-
[UT_OSP_TABLE_SLOT_IN_USE] = "ES Startup: Error: ES_TaskTable slot in use at task creation!\n",
142-
/* ES Startup: Error, Can't Open ES App Startup file: */
143-
[UT_OSP_CANNOT_OPEN_ES_APP_STARTUP] = "ES Startup: Error, Can't Open ES App Startup file: %s EC = 0x%08X\n",
144-
/* ES Startup: Unable to extract filename from path: /cf/apps/tst_lib.bundle.gz. */
145-
[UT_OSP_EXTRACT_FILENAME_CF] = "ES Startup: Unable to extract filename from path: %s.\n",
146-
/* Warning: Invalid System Log mode, log entry discarded. */
147-
[UT_OSP_INVALID_LOG_MODE] = "Warning: Invalid System Log mode, log entry discarded.\n",
148-
/* ES Startup: Library path plus file name length (~) exceeds max allowed (~) */
149-
[UT_OSP_LIB_PATH_FILE_TOO_LONG] = "ES Startup: Library path plus file name length (%d) exceeds max allowed (%d)\n",
150-
/* ES Startup: Unable to decompress Application File: ut/filename.gz */
151-
[UT_OSP_DECOMPRESS_APP] = "ES Startup: Unable to decompress Application File: %s\n",
152-
/* ES Startup: Unable to decompress library file: /cf/apps/tst_lib.bundle.gz */
153-
[UT_OSP_DECOMPRESS_LIBRARY] = "ES Startup: Unable to decompress library file: %s\n",
154-
/* CFE_ES_ExitChildTask Error Calling CFE_ES_GetAppID. Task ID = ~, RC = 0x~ */
155-
[UT_OSP_GET_APP_ID] = "CFE_ES_ExitChildTask Error Calling CFE_ES_GetAppID. Task ID = %d, RC = 0x%08X\n",
156-
/* ES Startup: Error, No free application slots available for CORE App! */
157-
[UT_OSP_NO_FREE_CORE_APP_SLOTS] = "ES Startup: Error, No free application slots available for CORE App!\n",
158-
/* ES Startup: CFE_ES_Global.TaskTable record used error for App: CFE_EVS, continuing. */
159-
[UT_OSP_RECORD_USED] = "ES Startup: Error: ES_TaskTable slot for ID %lx in use at task creation!\n",
160-
/* CFE_ES_ExitChildTask called from invalid task context */
161-
[UT_OSP_TASKEXIT_BAD_CONTEXT] = "CFE_ES_ExitChildTask called from invalid task context\n",
162-
[UT_OSP_BACKGROUND_TAKE] = "CFE_ES: Failed to take background sem: %08lx\n",
44+
[0] = NULL, /* Message 0 is reserved */
45+
[UT_OSP_MOUNT_VOLATILE] = "%s: Error Mounting Volatile(RAM) Volume. EC = 0x%08X\n",
46+
[UT_OSP_CORE_RUNTIME] = "%s: CORE Application %s Had a Runtime Error.\n",
47+
[UT_OSP_CORE_APP_CREATE] = "%s: OS_TaskCreate error creating core App: %s: EC = 0x%08X\n",
48+
[UT_OSP_EARLYINIT] = "%s: Error returned when calling function: %s: EC = 0x%08X\n",
49+
[UT_OSP_FIND_LIBRARY] = "%s: Could not find Library Init symbol:%s. EC = %d\n",
50+
[UT_OSP_POR_MAX_HW_SPECIAL] = "%s: POWER ON RESET due to max proc resets (HW Spec Cmd).\n",
51+
[UT_OSP_CANNOT_CALL_APP_MAIN] = "%s: Error: Cannot Call from a cFE App Main Task. ID = %d\n",
52+
[UT_OSP_FUNCTION_POINTER] = "%s: bad function pointer ( table entry = %d).\n",
53+
[UT_OSP_STARTUP_READ] = "%s: Error Reading Startup file. EC = 0x%08X\n",
54+
[UT_OSP_PROC_RESET_COMMANDED] = "%s: PROCESSOR RESET called from CFE_ES_ResetCFE (Commanded).\n",
55+
[UT_OSP_MUTEX_TAKE] = "%s: SharedData Mutex Take Err Stat=0x%x,Func=%s,Line=%d\n",
56+
[UT_OSP_STARTUP_SYNC_FAIL_1] = "%s: Startup Sync failed - Applications may not have all started\n",
57+
[UT_OSP_SYSTEM_LOG_FULL] = "Warning: System Log full, log entry discarded.\n",
58+
[UT_OSP_FILE_LINE_TOO_LONG] = "%s: **WARNING** File Line %u is malformed: %u bytes, %u tokens.\n",
59+
[UT_OSP_SHARED_LIBRARY_INIT] = "%s: Load Shared Library Init Error = 0x%08x\n",
60+
[UT_OSP_REMOVE_VOLATILE] = "%s: Error Removing Volatile(RAM) Volume. EC = 0x%08X\n",
61+
[UT_OSP_POR_OTHER] = "%s: POWER ON RESET due to other cause (See Subtype).\n",
62+
[UT_OSP_DETERMINE_BLOCKS] = "%s: Error Determining Blocks Free on Volume. EC = 0x%08X\n",
63+
[UT_OSP_STARTUP_SYNC_FAIL_2] = "%s: Startup Sync failed - Applications may not have all initialized\n",
64+
[UT_OSP_LIBRARY_SLOTS] = "%s: No free library slots available\n",
65+
[UT_OSP_EXTRACT_FILENAME_UT] = "%s: Unable to extract filename from path: %s.\n",
66+
[UT_OSP_APP_PATH_FILE_TOO_LONG] = "%s: Application path plus file name length (%d) exceeds max allowed (%d)\n",
67+
[UT_OSP_REFORMAT_VOLATILE] = "%s: Error Re-Formating Volatile(RAM) Volume. EC = 0x%08X\n",
68+
[UT_OSP_EXTRACT_FILENAME_UT55] = "%s: Could not load file:%s. EC = 0x%08X\n",
69+
[UT_OSP_EXTRACT_FILENAME_UT46] = "%s: Unable to extract filename from path: %s.\n",
70+
[UT_OSP_NO_FREE_APP_SLOTS] = "%s: No free application slots available\n",
71+
[UT_OSP_EXTRACT_FILENAME_UT57] = "%s: Unable to extract filename from path: %s.\n",
72+
[UT_OSP_MUTEX_GIVE] = "%s: SharedData Mutex Give Err Stat=0x%x,Func=%s,Line=%d\n",
73+
[UT_OSP_CANNOT_FIND_SYMBOL] = "%s: Could not find symbol:%s. EC = 0x%08X\n",
74+
[UT_OSP_INIT_VOLATILE] = "%s: Error Initializing Volatile(RAM) Volume. EC = 0x%08X\n",
75+
[UT_OSP_APP_INIT] = "%s: Application Init Failed,RC=0x%08X\n",
76+
[UT_OSP_POR_MAX_PROC_RESETS] = "%s: POWER ON RESET due to max proc resets (Commanded).\n",
77+
[UT_OSP_CANNOT_RESTART_APP] = "%s: Cannot Restart Application %s, It is not running.\n",
78+
[UT_OSP_INSUFF_FREE_SPACE] = "%s: Insufficent Free Space on Volatile Disk, Reformatting.\n",
79+
[UT_OSP_LOAD_SHARED_LIBRARY] = "%s: Could not load cFE Shared Library\n",
80+
[UT_OSP_POR_HW_SPECIAL] = "%s: POWER ON RESET due to HW Special Cmd (Hw Spec Cmd).\n",
81+
[UT_OSP_APP_CREATE] = "%s: AppCreate Error: TaskCreate %s Failed. EC = 0x%08X!\n",
82+
[UT_OSP_CREATE_VOLATILE] = "%s: Error Creating Volatile(RAM) Volume. EC = 0x%08X\n",
83+
[UT_OSP_MODULE_UNLOAD_FAILED] = "%s: Failed to unload: %s. EC = 0x%08X\n",
84+
[UT_OSP_POR_COMMANDED] = "%s: POWERON RESET called from CFE_ES_ResetCFE (Commanded).\n",
85+
[UT_OSP_REMOUNT_VOLATILE] = "%s: Error Re-Mounting Volatile(RAM) Volume. EC = 0x%08X\n",
86+
[UT_OSP_CORE_APP_EXIT] = "%s: Cannot Exit CORE Application %s\n",
87+
[UT_OSP_ES_APP_STARTUP_OPEN] = "%s: Opened ES App Startup file: %s\n",
88+
[UT_OSP_CORE_INIT] = "%s: CORE Application %s Had an Init Error.\n",
89+
[UT_OSP_PROC_RESET_MAX_HW_SPECIAL] = "%s: PROCESSOR RESET due to Hardware Special Command (HW Spec Cmd).\n",
90+
[UT_OSP_COMMAND_PIPE] = "%s: Error reading cmd pipe,RC=0x%08X\n",
91+
[UT_OSP_UNMOUNT_VOLATILE] = "%s: Error Un-Mounting Volatile(RAM) Volume. EC = 0x%08X\n",
92+
[UT_OSP_TABLE_SLOT_IN_USE] = "%s: Error: ES_TaskTable slot in use at task creation!\n",
93+
[UT_OSP_CANNOT_OPEN_ES_APP_STARTUP] = "%s: Error, Can't Open ES App Startup file: %s EC = 0x%08X\n",
94+
[UT_OSP_EXTRACT_FILENAME_CF] = "%s: Unable to extract filename from path: %s.\n",
95+
[UT_OSP_INVALID_LOG_MODE] = "Warning: Invalid System Log mode, log entry discarded.\n",
96+
[UT_OSP_LIB_PATH_FILE_TOO_LONG] = "%s: Library path plus file name length (%d) exceeds max allowed (%d)\n",
97+
[UT_OSP_DECOMPRESS_APP] = "%s: Unable to decompress Application File: %s\n",
98+
[UT_OSP_DECOMPRESS_LIBRARY] = "%s: Unable to decompress library file: %s\n",
99+
[UT_OSP_GET_APP_ID] = "%s: Error Calling CFE_ES_GetAppID. Task ID = %d, RC = 0x%08X\n",
100+
[UT_OSP_NO_FREE_CORE_APP_SLOTS] = "%s: Error, No free application slots available for CORE App!\n",
101+
[UT_OSP_RECORD_USED] = "%s: Error: ES_TaskTable slot for ID %lx in use at task creation!\n",
102+
[UT_OSP_TASKEXIT_BAD_CONTEXT] = "%s: Called from invalid task context\n",
103+
[UT_OSP_BACKGROUND_TAKE] = "%s: Failed to take background sem: %08lx\n",
163104
};

modules/evs/ut-coverage/evs_UT.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,20 @@
4242

4343
static const char *EVS_SYSLOG_MSGS[] = {
4444
NULL,
45-
"EVS call to CFE_PSP_GetResetArea failed, RC=0x%08x\n",
46-
"Unexpected size from CFE_PSP_GetResetArea: expected = 0x%08lX, actual = 0x%08lX\n",
47-
"EVS call to OS_MutSemCreate failed, RC=0x%08x\n",
48-
"Event Log cleared following power-on reset\n",
49-
"Event Log cleared, n=%d, c=%d, f=%d, m=%d, o=%d\n",
50-
"Event Log restored, n=%d, c=%d, f=%d, m=%d, o=%d\n",
51-
"EVS:Application Init Failed,RC=0x%08X\n",
52-
"EVS:Error reading cmd pipe,RC=0x%08X\n",
45+
"%s: Call to CFE_PSP_GetResetArea failed, RC=0x%08x\n",
46+
"%s: Unexpected size from CFE_PSP_GetResetArea: expected = 0x%08lX, actual = 0x%08lX\n",
47+
"%s: OS_MutSemCreate failed, RC=0x%08x\n",
48+
"%s: Event Log cleared following power-on reset\n",
49+
"%s: Event Log cleared, n=%d, c=%d, f=%d, m=%d, o=%d\n",
50+
"%s: Event Log restored, n=%d, c=%d, f=%d, m=%d, o=%d\n",
51+
"%s: Application Init Failed,RC=0x%08X\n",
52+
"%s: Error reading cmd pipe,RC=0x%08X\n",
5353
NULL, /* old message removed - placeholder to maintain indices */
54-
"EVS:Call to CFE_ES_GetAppID Failed:RC=0x%08X\n",
55-
"EVS:Call to CFE_EVS_Register Failed:RC=0x%08X\n",
56-
"EVS:Call to CFE_SB_CreatePipe Failed:RC=0x%08X\n",
57-
"EVS:Subscribing to Cmds Failed:RC=0x%08X\n",
58-
"EVS:Subscribing to HK Request Failed:RC=0x%08X\n"};
54+
"%s: Call to CFE_ES_GetAppID Failed:RC=0x%08X\n",
55+
"%s: Call to CFE_EVS_Register Failed:RC=0x%08X\n",
56+
"%s: Call to CFE_SB_CreatePipe Failed:RC=0x%08X\n",
57+
"%s: Subscribing to Cmds Failed:RC=0x%08X\n",
58+
"%s: Subscribing to HK Request Failed:RC=0x%08X\n"};
5959

6060
static const UT_TaskPipeDispatchId_t UT_TPID_CFE_EVS_CMD_NOOP_CC = {.MsgId = CFE_SB_MSGID_WRAP_VALUE(CFE_EVS_CMD_MID),
6161
.CommandCode = CFE_EVS_NOOP_CC};

modules/fs/ut-coverage/fs_UT.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242

4343
#include "target_config.h"
4444

45-
const char *FS_SYSLOG_MSGS[] = {NULL, "FS SharedData Mutex Take Err Stat=0x%x,App=%lu,Function=%s\n",
46-
"FS SharedData Mutex Give Err Stat=0x%x,App=%lu,Function=%s\n"};
45+
const char *FS_SYSLOG_MSGS[] = {NULL, "%s: SharedData Mutex Take Err Stat=0x%x,App=%lu,Function=%s\n",
46+
"%s: SharedData Mutex Give Err Stat=0x%x,App=%lu,Function=%s\n"};
4747

4848
/* counts the number of times UT_FS_OnEvent() was invoked (below) */
4949
uint32 UT_FS_FileWriteEventCount[CFE_FS_FileWriteEvent_MAX];

modules/time/ut-coverage/time_UT.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
/*
4444
** External global variables
4545
*/
46-
const char *TIME_SYSLOG_MSGS[] = {NULL, "TIME:Error reading cmd pipe,RC=0x%08X\n",
47-
"TIME:Application Init Failed,RC=0x%08X\n", "TIME:1Hz OS_TimerAdd failed:RC=0x%08X\n",
48-
"TIME:1Hz OS_TimerSet failed:RC=0x%08X\n"};
46+
const char *TIME_SYSLOG_MSGS[] = {NULL, "%s: Error reading cmd pipe,RC=0x%08X\n",
47+
"%s: Application Init Failed,RC=0x%08X\n", "%s: 1Hz OS_TimerAdd failed:RC=0x%08X\n",
48+
"%s: 1Hz OS_TimerSet failed:RC=0x%08X\n"};
4949

5050
static const UT_TaskPipeDispatchId_t UT_TPID_CFE_TIME_SEND_HK = {.MsgId =
5151
CFE_SB_MSGID_WRAP_VALUE(CFE_TIME_SEND_HK_MID)};

0 commit comments

Comments
 (0)