[lttng-dev] [PATCH lttng-tools] Fix: Copy-pasted PERROR messages may be misleading

David Goulet dgoulet at efficios.com
Wed May 14 11:34:09 EDT 2014


Merged

On 14 May (11:32:10), Jérémie Galarneau wrote:
> 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 <jeremie.galarneau at efficios.com>
> ---
>  src/bin/lttng-sessiond/main.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c
> index 3a8a1b2..3fc2565 100644
> --- a/src/bin/lttng-sessiond/main.c
> +++ b/src/bin/lttng-sessiond/main.c
> @@ -5190,7 +5190,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;
>  	}
>  
> @@ -5198,7 +5198,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;
>  	}
>  
> -- 
> 1.9.2
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 603 bytes
Desc: Digital signature
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140514/54ffcf23/attachment.sig>


More information about the lttng-dev mailing list