Skip to content

Commit

Permalink
pathd: Replace ctime_r() with time_to_string()
Browse files Browse the repository at this point in the history
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
  • Loading branch information
ton31337 committed Dec 20, 2024
1 parent 1f21eea commit 6dceb6f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pathd/path_pcep_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6dceb6f

Please sign in to comment.