summaryrefslogtreecommitdiff
path: root/pathd/path_pcep_debug.c
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2024-12-21 22:59:58 -0600
committerGitHub <noreply@github.com>2024-12-21 22:59:58 -0600
commite62c2f10bc91db9c8ac867c3401b42b88ae4a1cc (patch)
treea8ed3301dd7584d5b6cdb1f43660536ac0f166a9 /pathd/path_pcep_debug.c
parent0fbda4510552234b3d6de12bacabb330ee4ecc0d (diff)
parent8f5821eb77710468b2c39e8132cd07d17448fd20 (diff)
Merge pull request #17684 from opensourcerouting/fix/json_time_no_newline
bgpd, lib: Use frrstr_time() when using ctime_r()
Diffstat (limited to 'pathd/path_pcep_debug.c')
-rw-r--r--pathd/path_pcep_debug.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pathd/path_pcep_debug.c b/pathd/path_pcep_debug.c
index 7bff9c7b9c..89e7574324 100644
--- a/pathd/path_pcep_debug.c
+++ b/pathd/path_pcep_debug.c
@@ -1321,8 +1321,7 @@ void _format_pcep_event(int ps, pcep_event *event)
PATHD_FORMAT("\n");
PATHD_FORMAT("%*sevent_type: %s\n", ps2, "",
pcep_event_type_name(event->event_type));
- PATHD_FORMAT("%*sevent_time: %s", ps2, "",
- ctime_r(&event->event_time, buf));
+ PATHD_FORMAT("%*sevent_time: %s", ps2, "", time_to_string(event->event_time, buf));
if (event->session == NULL) {
PATHD_FORMAT("%*ssession: NULL\n", ps2, "");
} else {