refactoring
This commit is contained in:
parent
374c8ff5a9
commit
6a14fd0477
|
@ -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!");
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue