assert: use dprintf, not printf, when printing assertion message

This commit is contained in:
K. Lange 2021-10-25 18:24:49 +09:00
parent 465c82a5f8
commit 4b62e4ab22

View File

@ -8,7 +8,7 @@
void __assert_failed(const char * file, int line, const char * func, const char * cond) {
arch_fatal_prepare();
printf("%s:%d (%s) Assertion failed: %s\n", file, line, func, cond);
dprintf("%s:%d (%s) Assertion failed: %s\n", file, line, func, cond);
arch_dump_traceback();
arch_fatal();
}