aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/mlibc/stdlib/htoa.c
diff options
context:
space:
mode:
authorMarvin Borner2019-12-21 22:22:03 +0100
committerMarvin Borner2019-12-21 22:22:03 +0100
commit499784a824c541001c2fd52ae95eba88dcfc952b (patch)
treec3c26d7c8a3b9291d909f4655b7d27a5ae2369bc /src/userspace/mlibc/stdlib/htoa.c
parent38610cd06dc0b5a3a4ee46f5fe7c341191aa2bc1 (diff)
Many debugging/serial improvements
Sorry for the little information, but I did many things :)
Diffstat (limited to 'src/userspace/mlibc/stdlib/htoa.c')
-rw-r--r--src/userspace/mlibc/stdlib/htoa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/userspace/mlibc/stdlib/htoa.c b/src/userspace/mlibc/stdlib/htoa.c
index 098e1c8..579db5d 100644
--- a/src/userspace/mlibc/stdlib/htoa.c
+++ b/src/userspace/mlibc/stdlib/htoa.c
@@ -1,8 +1,8 @@
#include <stdint.h>
-#include <mlibc/string.h>
+#include <mlibc/stdlib.h>
#include <mlibc/stdlib.h>
-static const char __HTOA_TABLE[] = "0123456789ABCDEF";
+static const char HTOA_TABLE[] = "0123456789ABCDEF";
char *htoa(uint32_t n)
{
@@ -11,7 +11,7 @@ char *htoa(uint32_t n)
int i = 0;
while (n) {
- ret[i++] = __HTOA_TABLE[n & 0xF];
+ ret[i++] = HTOA_TABLE[n & 0xF];
n >>= 4;
}