Subject: Re: [PATCH 2/2] lib/cobalt: set name for printf thread to help debugging References: <20190614102349.22912-1-norbert.lange@andritz.com> <20190614102349.22912-2-norbert.lange@andritz.com> From: Jan Kiszka Message-ID: Date: Fri, 14 Jun 2019 18:34:45 +0200 MIME-Version: 1.0 In-Reply-To: <20190614102349.22912-2-norbert.lange@andritz.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Norbert Lange , xenomai@xenomai.org On 14.06.19 12:23, Norbert Lange via Xenomai wrote: > Signed-off-by: Norbert Lange > --- > lib/cobalt/printf.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/cobalt/printf.c b/lib/cobalt/printf.c > index 33ff7f9ac..7426f2bda 100644 > --- a/lib/cobalt/printf.c > +++ b/lib/cobalt/printf.c > @@ -648,6 +648,7 @@ static void spawn_printer_thread(void) > pthread_sigmask(SIG_BLOCK, &sset, &oset); > pthread_create(&printer_thread, &thattr, printer_loop, NULL); > sigprocmask(SIG_SETMASK, &oset, NULL); > + pthread_setname_np(printer_thread, "cobalt_printf"); > } > > void cobalt_print_init_atfork(void) > Thanks, both applied. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux