Skip to content

Commit

Permalink
align debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
BLuedtke committed Nov 29, 2024
1 parent d5b0bce commit 00a3638
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/highlevel/bidib_highlevel_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,23 +349,23 @@ void *bidib_heartbeat_log(void *par __attribute__((unused))) {
// Report the mutex statistics every 2 seconds
if (iters == 400) {
printf("Libbidib: Mutex statistics report for last 2 seconds:\n");
printf("bidib_state_trains_rwlock: Write-Locked %.2f percent of the time\n",
printf("bidib_state_trains_rwlock: Wr-Locked %.2f percent of the time\n",
((float) bidib_state_trains_rwlock_lockedcount / (float) iters)*100.0f);
printf("trackstate_accessories_mutex: Locked %.2f percent of the time\n",
printf("trackstate_accessories_mutex: Locked %.2f percent of the time\n",
((float) trackstate_accessories_mutex_lockedcount / (float) iters)*100.0f);
printf("trackstate_peripherals_mutex: Locked %.2f percent of the time\n",
printf("trackstate_peripherals_mutex: Locked %.2f percent of the time\n",
((float) trackstate_peripherals_mutex_lockedcount / (float) iters)*100.0f);
printf("trackstate_segments_mutex: Locked %.2f percent of the time\n",
printf("trackstate_segments_mutex: Locked %.2f percent of the time\n",
((float) trackstate_segments_mutex_lockedcount / (float) iters)*100.0f);
printf("trackstate_reversers_mutex: Locked %.2f percent of the time\n",
printf("trackstate_reversers_mutex: Locked %.2f percent of the time\n",
((float) trackstate_reversers_mutex_lockedcount / (float) iters)*100.0f);
printf("trackstate_trains_mutex: Locked %.2f percent of the time\n",
printf("trackstate_trains_mutex: Locked %.2f percent of the time\n",
((float) trackstate_trains_mutex_lockedcount / (float) iters)*100.0f);
printf("trackstate_boosters_mutex: Locked %.2f percent of the time\n",
printf("trackstate_boosters_mutex: Locked %.2f percent of the time\n",
((float) trackstate_boosters_mutex_lockedcount / (float) iters)*100.0f);
printf("trackstate_track_outputs_mutex: Locked %.2f percent of the time\n",
((float) trackstate_track_outputs_mutex_lockedcount / (float) iters)*100.0f);
printf("bidib_state_boards_rwlock: Write-Locked %.2f percent of the time\n",
printf("bidib_state_boards_rwlock: Wr-Locked %.2f percent of the time\n",
((float) bidib_state_boards_rwlock_lockedcount / (float) iters)*100.0f);
printf("\n\n");
iters = 0;
Expand Down

0 comments on commit 00a3638

Please sign in to comment.