From 5ffdc11eda7718224bc07e82b0ff41bd723c2867 Mon Sep 17 00:00:00 2001 From: Javier Garcia Date: Tue, 19 Jan 2021 11:42:48 +0100 Subject: [PATCH] pathd: add meaningful names to threads Signed-off-by: Javier Garcia --- pathd/path_pcep_controller.c | 2 +- pathd/path_pcep_lib.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pathd/path_pcep_controller.c b/pathd/path_pcep_controller.c index 255503b459..f4871a4d8d 100644 --- a/pathd/path_pcep_controller.c +++ b/pathd/path_pcep_controller.c @@ -185,7 +185,7 @@ int pcep_ctrl_initialize(struct thread_master *main_thread, PCEP_DEBUG("Initializing pcep module controller"); /* Create and start the FRR pthread */ - *fpt = frr_pthread_new(&attr, "PCEP thread", "pcep"); + *fpt = frr_pthread_new(&attr, "PCEP thread", "pcep_controller"); if (*fpt == NULL) { flog_err(EC_PATH_SYSTEM_CALL, "failed to initialize PCEP thread"); diff --git a/pathd/path_pcep_lib.c b/pathd/path_pcep_lib.c index fc72be8979..bb6bfb1336 100644 --- a/pathd/path_pcep_lib.c +++ b/pathd/path_pcep_lib.c @@ -285,7 +285,7 @@ int pcep_lib_pthread_create_cb(pthread_t *thread_id, const pthread_attr_t *attr, .start = pcep_lib_pthread_start_passthrough, .stop = pcep_lib_pthread_stop_cb}; struct frr_pthread *fpt = - frr_pthread_new(&fpt_attr, thread_name, "pcep"); + frr_pthread_new(&fpt_attr, thread_name, "pcep_lib"); if (fpt == NULL) { return 1; }