From 61305688fd6971f6a121455d31b80825eec5a7e3 Mon Sep 17 00:00:00 2001 From: Aurora Date: Tue, 30 Aug 2016 21:34:03 +0200 Subject: [PATCH] Move the itoa function to strings.c --- source/exceptions.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/source/exceptions.c b/source/exceptions.c index f7cd559b..cfe54fcb 100644 --- a/source/exceptions.c +++ b/source/exceptions.c @@ -80,20 +80,6 @@ void installArm11Handlers(u32 *exceptionsPage, u32 stackAddr, u32 codeSetOffset) } } -static void hexItoa(u32 n, char *out) -{ - const char hexDigits[] = "0123456789ABCDEF"; - u32 i = 0; - - while(n > 0) - { - out[7 - i++] = hexDigits[n & 0xF]; - n >>= 4; - } - - for(; i < 8; i++) out[7 - i] = '0'; -} - void detectAndProcessExceptionDumps(void) { volatile ExceptionDumpHeader *dumpHeader = (volatile ExceptionDumpHeader *)0x25000000;