diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-01-28 03:58:51 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-01-28 04:02:11 +0100 |
commit | 608f796648e8de74f9aac3e60db3f7d87e69e9f4 (patch) | |
tree | 2966b76b8d12e23f99c8fbd13aeccbb4d4ef8ce8 /os/src/osdebug.c | |
parent | 18d53779c4fef3efca606aead2da3af40ec76332 (diff) |
Work on the MPU port. The exception VTOR redirection doesn't work as expected.
Diffstat (limited to 'os/src/osdebug.c')
-rw-r--r-- | os/src/osdebug.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/os/src/osdebug.c b/os/src/osdebug.c index 6abde30..ca1f359 100644 --- a/os/src/osdebug.c +++ b/os/src/osdebug.c @@ -82,13 +82,9 @@ void osDbgPrintf(const char * str, ...) { break; case 'p': arg_p = va_arg(ap, uintptr_t); - if (arg_p) { - dbgput("0x", 2); - for (i = sizeof(arg_p) * 2 - 1; i >= 0; i--) { - dbgput(&hex_conv[(arg_p >> (i << 2)) & 15], 1); - } - } else { - dbgput("(nil)", 5); + dbgput("0x", 2); + for (i = sizeof(arg_p) * 2 - 1; i >= 0; i--) { + dbgput(&hex_conv[(arg_p >> (i << 2)) & 15], 1); } break; case 'x': |