auto-sync
This commit is contained in:
parent
ba1194ea8e
commit
56c01c7951
|
@ -95,6 +95,8 @@ char *ftoa(char *p, double num, unsigned long precision) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#include "error_handling.h"
|
||||
|
||||
/**
|
||||
* @brief System formatted output function.
|
||||
* @details This function implements a minimal @p vprintf()-like functionality
|
||||
|
@ -131,6 +133,9 @@ void chvprintf(BaseSequentialStream *chp, const char *fmt, va_list ap) {
|
|||
char tmpbuf[MAX_FILLER + 1];
|
||||
#endif
|
||||
|
||||
efiAssertVoid(getRemainingStack(chThdSelf()) > 128, "lowstck#1c");
|
||||
|
||||
|
||||
while (TRUE) {
|
||||
c = *fmt++;
|
||||
if (c == 0)
|
||||
|
|
|
@ -108,6 +108,7 @@ void appendFast(Logging *logging, const char *text) {
|
|||
|
||||
static void vappendPrintfI(Logging *logging, const char *fmt, va_list arg) {
|
||||
intermediateLoggingBuffer.eos = 0; // reset
|
||||
efiAssertVoid(getRemainingStack(chThdSelf()) > 196, "lowstck#1b");
|
||||
chvprintf((BaseSequentialStream *) &intermediateLoggingBuffer, fmt, arg);
|
||||
intermediateLoggingBuffer.buffer[intermediateLoggingBuffer.eos] = 0; // need to terminate explicitly
|
||||
append(logging, (char *) intermediateLoggingBufferData);
|
||||
|
|
Loading…
Reference in New Issue