From 608f796648e8de74f9aac3e60db3f7d87e69e9f4 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 28 Jan 2011 03:58:51 +0100 Subject: Work on the MPU port. The exception VTOR redirection doesn't work as expected. --- os/src/osdebug.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'os/src/osdebug.c') 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': -- cgit v1.2.3