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.5.0-rc1~40 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=f5c32ef1f72eb213adcbbfd3f53f229a91789676 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 0a2f3f48f..eb772fe59 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -5193,7 +5193,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; } @@ -5201,7 +5201,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; }