refactoring

This commit is contained in:
rusefi 2018-01-23 11:36:32 -05:00
parent cab7c914e0
commit fdbe72ffac
2 changed files with 1 additions and 2 deletions

View File

@ -102,7 +102,7 @@ static void vappendPrintfI(Logging *logging, const char *fmt, va_list arg) {
/** /**
* this method acquires system lock to guard the shared intermediateLoggingBuffer memory stream * this method acquires system lock to guard the shared intermediateLoggingBuffer memory stream
*/ */
void vappendPrintf(Logging *logging, const char *fmt, va_list arg) { static void vappendPrintf(Logging *logging, const char *fmt, va_list arg) {
efiAssertVoid(getRemainingStack(chThdGetSelfX()) > 128, "lowstck#5b"); efiAssertVoid(getRemainingStack(chThdGetSelfX()) > 128, "lowstck#5b");
if (!intermediateLoggingBufferInited) { if (!intermediateLoggingBufferInited) {
firmwareError(CUSTOM_ERR_BUFF_INIT_ERROR, "intermediateLoggingBufferInited not inited!"); firmwareError(CUSTOM_ERR_BUFF_INIT_ERROR, "intermediateLoggingBufferInited not inited!");

View File

@ -78,7 +78,6 @@ uint32_t remainingSize(Logging *logging);
void printMsg(Logging *logging, const char *fmt, ...); void printMsg(Logging *logging, const char *fmt, ...);
void appendPrintf(Logging *logging, const char *fmt, ...); void appendPrintf(Logging *logging, const char *fmt, ...);
void vappendPrintf(Logging *logging, const char *fmt, va_list arg);
void append(Logging *logging, const char *text); void append(Logging *logging, const char *text);
void appendFast(Logging *logging, const char *text); void appendFast(Logging *logging, const char *text);