From: Jérémie Galarneau Date: Wed, 14 May 2014 15:32:10 +0000 (-0400) Subject: Fix: Copy-pasted PERROR messages may be misleading X-Git-Tag: v2.4.2~22 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4d14e26d67a7956c688fb3b337064566365eb231;p=lttng-tools.git Fix: Copy-pasted PERROR messages may be misleading Some PERRORs in lttng-sessiond's pthread_create's error handling code indicate the wrong thread name which may be misleading during debugging. Signed-off-by: Jérémie Galarneau Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 09d46d3ee..5de918c27 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -4913,7 +4913,7 @@ int main(int argc, char **argv) ret = pthread_create(&apps_notify_thread, NULL, ust_thread_manage_notify, (void *) NULL); if (ret != 0) { - PERROR("pthread_create apps"); + PERROR("pthread_create notify"); goto exit_apps_notify; } @@ -4921,7 +4921,7 @@ int main(int argc, char **argv) ret = pthread_create(&jul_reg_thread, NULL, jul_thread_manage_registration, (void *) NULL); if (ret != 0) { - PERROR("pthread_create apps"); + PERROR("pthread_create JUL"); goto exit_jul_reg; }