From 20f6556bffb93794e2e2063f2b127a275dfc76d5 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Wed, 16 Jan 2019 19:32:16 -0500 Subject: [PATCH] kernel/x86: Backslash-escape trigraphs. Fixes an instance of -Wtrigraphs. --- src/system/kernel/arch/x86/arch_debug.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/kernel/arch/x86/arch_debug.cpp b/src/system/kernel/arch/x86/arch_debug.cpp index 6bb1a4ed53..d864f0da58 100644 --- a/src/system/kernel/arch/x86/arch_debug.cpp +++ b/src/system/kernel/arch/x86/arch_debug.cpp @@ -183,7 +183,7 @@ print_demangled_call(const char* image, const char* symbol, addr_t args, kprintf("<%s> %.*s<\33[32m%#" B_PRIx32 "\33[0m>%s", image, namespaceLength, name, argValue, lastName); } else - kprintf("<%s> %.*s%s", image, namespaceLength, name, lastName); + kprintf("<%s> %.*s<\?\?\?>%s", image, namespaceLength, name, lastName); if (addDebugVariables) set_debug_variable("_this", argValue); @@ -299,7 +299,7 @@ print_demangled_call(const char* image, const char* symbol, addr_t args, kprintf(" \33[31m\"\"\33[0m"); else if (debug_strlcpy(B_CURRENT_TEAM, buffer, (char*)(addr_t)value, kBufferSize) < B_OK) { - kprintf(" \33[31m\"\"\33[0m"); + kprintf(" \33[31m\"<\?\?\?>\"\33[0m"); } else kprintf(" \33[36m\"%s\"\33[0m", buffer); } @@ -1172,7 +1172,7 @@ arch_debug_get_stack_trace(addr_t* returnAddresses, int32 maxCount, break; } } - + if (ip == 0) break;