From 8782d64b6ff380865472c0f07c3347bdd4cfe2ad Mon Sep 17 00:00:00 2001 From: Avi Date: Tue, 25 Oct 2022 08:56:08 +1000 Subject: [PATCH] Fix #1506, Align Table Name reporting in CFE_TBL_Register() --- modules/tbl/fsw/src/cfe_tbl_api.c | 4 ++-- modules/tbl/fsw/src/cfe_tbl_internal.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/tbl/fsw/src/cfe_tbl_api.c b/modules/tbl/fsw/src/cfe_tbl_api.c index 5333557b7..1fc92f082 100644 --- a/modules/tbl/fsw/src/cfe_tbl_api.c +++ b/modules/tbl/fsw/src/cfe_tbl_api.c @@ -173,8 +173,8 @@ CFE_Status_t CFE_TBL_Register(CFE_TBL_Handle_t *TblHandlePtr, const char *Name, } else if (Status != CFE_TBL_INFO_RECOVERED_TBL) { - CFE_ES_WriteToSysLog("%s: Failed to register '%s.%s' as a CDS (ErrCode=0x%08X)\n", __func__, - AppName, Name, (unsigned int)Status); + CFE_ES_WriteToSysLog("%s: Failed to register Table '%s' as a CDS (ErrCode=0x%08X)\n", __func__, + TblName, (unsigned int)Status); /* Notify caller that although they asked for it to be critical, it isn't */ Status = CFE_TBL_WARN_NOT_CRITICAL; diff --git a/modules/tbl/fsw/src/cfe_tbl_internal.c b/modules/tbl/fsw/src/cfe_tbl_internal.c index 03a1ede1e..d747aab72 100644 --- a/modules/tbl/fsw/src/cfe_tbl_internal.c +++ b/modules/tbl/fsw/src/cfe_tbl_internal.c @@ -1813,9 +1813,9 @@ void CFE_TBL_RegisterWithCriticalTableRegistry(CFE_TBL_CritRegRec_t *CritRegRecP } else { - CFE_ES_WriteToSysLog("%s: Failed to find a free Crit Tbl Reg Rec for '%s'\n", __func__, RegRecPtr->Name); + CFE_ES_WriteToSysLog("%s: Failed to find a free Crit Tbl Reg Rec for '%s'\n", __func__, TblName); } /* Mark the table as critical for future reference */ RegRecPtr->CriticalTable = true; -} \ No newline at end of file +}