From 08e1a4535a0a8ad6abf8bdb819ac55170ef72dea Mon Sep 17 00:00:00 2001 From: "Gerardo E. Cruz-Ortiz" <59618057+astrogeco@users.noreply.github.com> Date: Thu, 17 Mar 2022 10:00:00 -0400 Subject: [PATCH] HOTFIX IC:Caelum-rc4+dev6, Fix failed format check --- src/os/inc/osapi-version.h | 3 ++- src/os/rtems/src/os-impl-loader.c | 14 +++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/os/inc/osapi-version.h b/src/os/inc/osapi-version.h index 048cd2eba..c093f41a4 100644 --- a/src/os/inc/osapi-version.h +++ b/src/os/inc/osapi-version.h @@ -44,7 +44,8 @@ */ #define OS_MAJOR_VERSION 5 /*!< @brief ONLY APPLY for OFFICIAL releases. Major version number. */ #define OS_MINOR_VERSION 0 /*!< @brief ONLY APPLY for OFFICIAL releases. Minor version number. */ -#define OS_REVISION 99 /*!< * Set to 0 on OFFICIAL releases, and set to 99 on development versions. Revision number. */ +#define OS_REVISION \ + 99 /*!< * Set to 0 on OFFICIAL releases. Set to 99 on DEVELOPMENT versions. Revision number. */ /*! * @brief Mission revision. diff --git a/src/os/rtems/src/os-impl-loader.c b/src/os/rtems/src/os-impl-loader.c index 73baa8957..de9903a07 100644 --- a/src/os/rtems/src/os-impl-loader.c +++ b/src/os/rtems/src/os-impl-loader.c @@ -120,7 +120,7 @@ int32 OS_ModuleLoad_Impl(const OS_object_token_t *token, const char *translated_ { int32 status = OS_ERROR; int unresolved; - void * dl_handle; + void *dl_handle; OS_impl_module_internal_record_t *impl; impl = OS_OBJECT_TABLE_GET(OS_impl_module_table, *token); @@ -242,12 +242,12 @@ int32 OS_ModuleGetInfo_Impl(const OS_object_token_t *token, OS_module_prop_t *mo if (obj != NULL) { module_prop->addr.valid = true; - module_prop->addr.code_address = (cpuaddr) obj->text_base; - module_prop->addr.code_size = (cpuaddr) rtems_rtl_obj_text_size(obj); - module_prop->addr.data_address = (cpuaddr) obj->data_base; - module_prop->addr.data_size = (cpuaddr) rtems_rtl_obj_data_size(obj); - module_prop->addr.bss_address = (cpuaddr) obj->bss_base; - module_prop->addr.bss_size = (cpuaddr) rtems_rtl_obj_bss_size(obj); + module_prop->addr.code_address = (cpuaddr)obj->text_base; + module_prop->addr.code_size = (cpuaddr)rtems_rtl_obj_text_size(obj); + module_prop->addr.data_address = (cpuaddr)obj->data_base; + module_prop->addr.data_size = (cpuaddr)rtems_rtl_obj_data_size(obj); + module_prop->addr.bss_address = (cpuaddr)obj->bss_base; + module_prop->addr.bss_size = (cpuaddr)rtems_rtl_obj_bss_size(obj); status = OS_SUCCESS; }