Skip to content

Commit

Permalink
Matching format specifies type to argument type to eliminate compile … (
Browse files Browse the repository at this point in the history
#521)

* Matching format specifies type to argument type to eliminate compile warnings

* Apply comments

* Fix another place

---------

Co-authored-by: Zexi Liu <[email protected]>
  • Loading branch information
ZexiLiu and Zexi Liu committed Jul 22, 2024
1 parent 0e28077 commit f4c8e05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/raft_server.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ void raft_server::check_leadership_transfer() {
if (peer_elem->get_matched_idx() + params->stale_log_gap_ <
cur_commit_idx) {
// This peer is lagging behind.
p_tr("peer %d is lagging behind, %lu < %lu",
p_tr("peer %d is lagging behind, %" PRIu64 " < %" PRIu64,
s_conf.get_id(), peer_elem->get_matched_idx(),
cur_commit_idx);
return;
Expand All @@ -1198,7 +1198,7 @@ void raft_server::check_leadership_transfer() {
uint64_t last_resp_ms = peer_elem->get_resp_timer_us() / 1000;
if (last_resp_ms > election_lower) {
// This replica is not responding.
p_tr("peer %d is not responding, %lu ms ago",
p_tr("peer %d is not responding, %" PRIu64 " ms ago",
s_conf.get_id(), last_resp_ms);
return;
}
Expand Down

0 comments on commit f4c8e05

Please sign in to comment.