From 6dceb6fa680ec9e3c40532f93337b6501aa10d19 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Fri, 20 Dec 2024 17:25:56 +0200 Subject: [PATCH] pathd: Replace ctime_r() with time_to_string() Signed-off-by: Donatas Abraitis --- pathd/path_pcep_debug.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pathd/path_pcep_debug.c b/pathd/path_pcep_debug.c index 7bff9c7b9c0e..89e757432420 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 {