diff --git a/fsw/mcp750-vxworks/src/cfe_psp_support.c b/fsw/mcp750-vxworks/src/cfe_psp_support.c index b912c94c..b6a6d1ed 100644 --- a/fsw/mcp750-vxworks/src/cfe_psp_support.c +++ b/fsw/mcp750-vxworks/src/cfe_psp_support.c @@ -114,7 +114,7 @@ void CFE_PSP_Restart(uint32 reset_type) void CFE_PSP_Panic(int32 ErrorCode) { - printf("CFE_PSP_Panic Called with error code = 0x%08X. Exiting.\n", (unsigned int)ErrorCode); + printf("%s called with error code = 0x%08X. Exiting.\n", __func__, (unsigned int)ErrorCode); exit(-1); /* Need to improve this */ } diff --git a/fsw/pc-linux/src/cfe_psp_exception.c b/fsw/pc-linux/src/cfe_psp_exception.c index 7f7b6847..beed3084 100644 --- a/fsw/pc-linux/src/cfe_psp_exception.c +++ b/fsw/pc-linux/src/cfe_psp_exception.c @@ -208,7 +208,7 @@ void CFE_PSP_AttachExceptions(void) */ backtrace(Addr, 1); - OS_printf("CFE_PSP: CFE_PSP_AttachExceptions Called\n"); + OS_printf("CFE_PSP: %s called\n", __func__); /* * Block most other signals during handler execution. diff --git a/fsw/pc-linux/src/cfe_psp_support.c b/fsw/pc-linux/src/cfe_psp_support.c index 59e39da5..35436c9c 100644 --- a/fsw/pc-linux/src/cfe_psp_support.c +++ b/fsw/pc-linux/src/cfe_psp_support.c @@ -128,7 +128,7 @@ void CFE_PSP_Restart(uint32 reset_type) void CFE_PSP_Panic(int32 ErrorCode) { - OS_printf("CFE_PSP_Panic Called with error code = 0x%08X. Exiting.\n", (unsigned int)ErrorCode); + OS_printf("%s called with error code = 0x%08X. Exiting.\n", __func__, (unsigned int)ErrorCode); OS_printf("The cFE could not start.\n"); abort(); /* abort() is preferable to exit(-1), as it may create a core file for debug */ } @@ -147,7 +147,7 @@ void CFE_PSP_Panic(int32 ErrorCode) */ void CFE_PSP_FlushCaches(uint32 type, void *address, uint32 size) { - printf("CFE_PSP_FlushCaches called -- Currently no Linux/OSX/Cygwin implementation\n"); + printf("%s called -- Currently no Linux/OSX/Cygwin implementation\n", __func__); } /* diff --git a/fsw/pc-rtems/src/cfe_psp_exception.c b/fsw/pc-rtems/src/cfe_psp_exception.c index eaa46e1c..52e2d416 100644 --- a/fsw/pc-rtems/src/cfe_psp_exception.c +++ b/fsw/pc-rtems/src/cfe_psp_exception.c @@ -65,7 +65,7 @@ */ void CFE_PSP_AttachExceptions(void) { - OS_printf("CFE_PSP: CFE_PSP_AttachExceptions Called\n"); + OS_printf("CFE_PSP: %s called\n", __func__); CFE_PSP_Exception_Reset(); } diff --git a/fsw/pc-rtems/src/cfe_psp_support.c b/fsw/pc-rtems/src/cfe_psp_support.c index b72bc0d4..068cea8f 100644 --- a/fsw/pc-rtems/src/cfe_psp_support.c +++ b/fsw/pc-rtems/src/cfe_psp_support.c @@ -80,7 +80,7 @@ extern CFE_PSP_MemoryBlock_t PcRtems_ReservedMemBlock; void CFE_PSP_Restart(uint32 reset_type) { CFE_PSP_FlushCaches(1, PcRtems_ReservedMemBlock.BlockPtr, PcRtems_ReservedMemBlock.BlockSize); - OS_printf("CFE_PSP_Restart is not implemented on this platform ( yet ! )\n"); + OS_printf("%s is not implemented on this platform ( yet ! )\n", __func__); exit(-1); } @@ -99,7 +99,7 @@ void CFE_PSP_Restart(uint32 reset_type) void CFE_PSP_Panic(int32 ErrorCode) { - printf("CFE_PSP_Panic Called with error code = 0x%08X. Exiting.\n", (unsigned int)ErrorCode); + printf("%s called with error code = 0x%08X. Exiting.\n", __func__, (unsigned int)ErrorCode); OS_ApplicationExit(ErrorCode); }