From 1a8582aaf23d6f0e01d9e72ac50df119a0767f09 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Sun, 8 Oct 2023 18:43:23 +0200 Subject: [PATCH] Log when creating new threads in threadCreate() --- common/utils/system.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/utils/system.c b/common/utils/system.c index e689806301..7cdeb5a21d 100644 --- a/common/utils/system.c +++ b/common/utils/system.c @@ -260,7 +260,8 @@ void threadCreate(pthread_t* t, void * (*func)(void*), void * param, char* name, ret=pthread_attr_setschedparam(&attr, &sparam); AssertFatal(ret == 0, "Error in pthread_attr_setschedparam(): ret: %d errno: %d\n", ret, errno); } - + + LOG_I(UTIL,"threadCreate for %s, affinity %x, priority %d\n",name,affinity,priority); ret=pthread_create(t, &attr, func, param); AssertFatal(ret == 0, "Error in pthread_create(): ret: %d, errno: %d\n", ret, errno);