From 2d73c9be80fa362fea4bfcc92a0d25e9d7ff8864 Mon Sep 17 00:00:00 2001 From: "Jose F. Martinez Pedraza" Date: Wed, 23 Jun 2021 15:11:50 -0400 Subject: [PATCH] Fix #1636 Removed unused function CFE_ES_SysLog_snprintf --- modules/es/fsw/src/cfe_es_log.h | 17 ----------------- modules/es/fsw/src/cfe_es_syslog.c | 17 ----------------- 2 files changed, 34 deletions(-) diff --git a/modules/es/fsw/src/cfe_es_log.h b/modules/es/fsw/src/cfe_es_log.h index 8ae358374..dbb4655b0 100644 --- a/modules/es/fsw/src/cfe_es_log.h +++ b/modules/es/fsw/src/cfe_es_log.h @@ -263,23 +263,6 @@ int32 CFE_ES_SysLogSetMode(CFE_ES_LogMode_Enum_t Mode); */ void CFE_ES_SysLog_vsnprintf(char *Buffer, size_t BufferSize, const char *SpecStringPtr, va_list ArgPtr); -/*---------------------------------------------------------------------------------------*/ -/** - * \brief Format a message intended for output to the system log - * - * Identical to the CFE_ES_SysLog_vsnprintf() call but with a variable argument set, - * for use in functions that need to directly handle a log message string. - * - * Similar in definition to the "snprintf()" C library call. - * - * \param Buffer User supplied buffer to output formatted sting into - * \param BufferSize Size of "Buffer" parameter. Should be greater than (CFE_TIME_PRINTED_STRING_SIZE+2) - * \param SpecStringPtr Printf-style format string - * - * \sa CFE_ES_SysLogAppend_Unsync() - */ -void CFE_ES_SysLog_snprintf(char *Buffer, size_t BufferSize, const char *SpecStringPtr, ...) OS_PRINTF(3, 4); - /*---------------------------------------------------------------------------------------*/ /** * \brief Write the contents of the syslog to a disk file diff --git a/modules/es/fsw/src/cfe_es_syslog.c b/modules/es/fsw/src/cfe_es_syslog.c index 1e639f05b..3f57561c5 100644 --- a/modules/es/fsw/src/cfe_es_syslog.c +++ b/modules/es/fsw/src/cfe_es_syslog.c @@ -442,23 +442,6 @@ void CFE_ES_SysLog_vsnprintf(char *Buffer, size_t BufferSize, const char *SpecSt } } -/*---------------------------------------------------------------- - * - * Function: CFE_ES_SysLog_snprintf - * - * Application-scope internal function - * See description in header file for argument/return detail - * - *-----------------------------------------------------------------*/ -void CFE_ES_SysLog_snprintf(char *Buffer, size_t BufferSize, const char *SpecStringPtr, ...) -{ - va_list ArgPtr; - - va_start(ArgPtr, SpecStringPtr); - CFE_ES_SysLog_vsnprintf(Buffer, BufferSize, SpecStringPtr, ArgPtr); - va_end(ArgPtr); -} - /*---------------------------------------------------------------- * * Function: CFE_ES_SysLogDump