Skip to contentSkip to conversation

Fix: Copy-pasted PERROR messages may be misleading

PATCH David Goulet 1 participant 1 message May 14, 2014 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Merged

Quoted 34 lines · Jérémie Galarneau

Some PERRORs in lttng-sessiond's pthread_create's error handling code indicate the wrong thread name which may be misleading during debugging.

---
 src/bin/lttng-sessiond/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/bin/lttng-sessiond/main.c +2 -2
index 3a8a1b2..3fc2565 100644
@@ -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;
 	}
 
Signature · 1 line
1.9.2

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev