mirror of https://github.com/FOME-Tech/fome-fw.git
helping Kinetis?
This commit is contained in:
parent
a87dfb7f87
commit
7df2666d7b
|
@ -124,9 +124,12 @@ void appendFast(Logging *logging, const char *text) {
|
|||
*/
|
||||
void Logging::vappendPrintf(const char *fmt, va_list arg) {
|
||||
#if ! EFI_UNIT_TEST
|
||||
#if EFI_ENABLE_ASSERTS
|
||||
// todo: Kinetis needs real getCurrentRemainingStack or mock
|
||||
if (getCurrentRemainingStack() < 128) {
|
||||
firmwareError(CUSTOM_ERR_6604, "lowstck#5b %s", chThdGetSelfX()->name);
|
||||
}
|
||||
#endif // EFI_ENABLE_ASSERTS
|
||||
int wasLocked = lockAnyContext();
|
||||
intermediateLogging.vappendPrintfI(this, fmt, arg);
|
||||
if (!wasLocked) {
|
||||
|
|
Loading…
Reference in New Issue