From 4542e4c7506b80777d940c63f68889821b50abb8 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 3 Oct 2012 19:49:01 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4734 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/kernel/src/chsys.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/os/kernel/src/chsys.c b/os/kernel/src/chsys.c index 1946a8263..cad546277 100644 --- a/os/kernel/src/chsys.c +++ b/os/kernel/src/chsys.c @@ -103,11 +103,9 @@ void chSysInit(void) { #endif chSysEnable(); -#if CH_USE_REGISTRY + /* Note, &ch_debug points to the string "main" if the registry is + active, else the parameter is ignored.*/ chRegSetThreadName((const char *)&ch_debug); -#else - chRegSetThreadName("main"); -#endif #if !CH_NO_IDLE_THREAD /* This thread has the lowest priority in the system, its role is just to