diff options
| author | Tharo <17233964+Thar0@users.noreply.github.com> | 2023-10-27 15:06:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-27 16:06:44 +0200 |
| commit | 3475651701f991b636a74e0254ef1b9682fa1126 (patch) | |
| tree | d6461594333179785b5b558688dec5b4b3901472 /src/boot/assert.c | |
| parent | 4e55168eaa4562ab131ea314a5fe4c22b591d827 (diff) | |
libc cleanup (#1568)
* libc cleanup
* Suggested changes, small alloca tweak
* Remove printf include
Diffstat (limited to 'src/boot/assert.c')
| -rw-r--r-- | src/boot/assert.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/boot/assert.c b/src/boot/assert.c index 438432d42..fa206fc36 100644 --- a/src/boot/assert.c +++ b/src/boot/assert.c @@ -1,9 +1,9 @@ #include "global.h" -NORETURN void __assert(const char* exp, const char* file, s32 line) { +NORETURN void __assert(const char* assertion, const char* file, int line) { char msg[256]; - osSyncPrintf("Assertion failed: %s, file %s, line %d, thread %d\n", exp, file, line, osGetThreadId(NULL)); + osSyncPrintf("Assertion failed: %s, file %s, line %d, thread %d\n", assertion, file, line, osGetThreadId(NULL)); sprintf(msg, "ASSERT: %s:%d(%d)", file, line, osGetThreadId(NULL)); - Fault_AddHungupAndCrashImpl(msg, exp); + Fault_AddHungupAndCrashImpl(msg, assertion); } |
