diff options
author | Donald Sharp <donaldsharp72@gmail.com> | 2021-10-14 13:34:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-14 13:34:20 +0200 |
commit | c6c39c05b54536fe9e70f6541c32c9a51a0be791 (patch) | |
tree | d0c39adccf70093940182d84b8cd39f88af180b4 /bfdd | |
parent | Merge pull request #9759 from opensourcerouting/workflow-dev-tag (diff) | |
parent | *: `frr-format` with unmodified GCC (diff) | |
download | frr-c6c39c05b54536fe9e70f6541c32c9a51a0be791.tar.xz frr-c6c39c05b54536fe9e70f6541c32c9a51a0be791.zip |
Merge pull request #9684 from opensourcerouting/printfrr-false-positive
*: `frr-format` with unmodified GCC
Diffstat (limited to 'bfdd')
-rw-r--r-- | bfdd/dplane.c | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/bfdd/dplane.c b/bfdd/dplane.c index 4b7f9ba7a..9dee2a558 100644 --- a/bfdd/dplane.c +++ b/bfdd/dplane.c @@ -157,8 +157,8 @@ static void bfd_dplane_debug_message(const struct bfddp_message *msg) case ECHO_REPLY: case ECHO_REQUEST: zlog_debug(" [dp_time=%" PRIu64 " bfdd_time=%" PRIu64 "]", - (uint64_t)be64toh(msg->data.echo.dp_time), - (uint64_t)be64toh(msg->data.echo.bfdd_time)); + be64toh(msg->data.echo.dp_time), + be64toh(msg->data.echo.bfdd_time)); break; case DP_ADD_SESSION: @@ -245,21 +245,18 @@ static void bfd_dplane_debug_message(const struct bfddp_message *msg) " packets), " "out %" PRIu64 " bytes (%" PRIu64 " packets)}]", ntohl(msg->data.session_counters.lid), - (uint64_t)be64toh( - msg->data.session_counters.control_input_bytes), - (uint64_t)be64toh(msg->data.session_counters - .control_input_packets), - (uint64_t)be64toh(msg->data.session_counters - .control_output_bytes), - (uint64_t)be64toh(msg->data.session_counters - .control_output_packets), - (uint64_t)be64toh(msg->data.session_counters.echo_input_bytes), - (uint64_t)be64toh( - msg->data.session_counters.echo_input_packets), - (uint64_t)be64toh( - msg->data.session_counters.echo_output_bytes), - (uint64_t)be64toh(msg->data.session_counters - .echo_output_packets)); + be64toh(msg->data.session_counters.control_input_bytes), + be64toh(msg->data.session_counters + .control_input_packets), + be64toh(msg->data.session_counters + .control_output_bytes), + be64toh(msg->data.session_counters + .control_output_packets), + be64toh(msg->data.session_counters.echo_input_bytes), + be64toh(msg->data.session_counters.echo_input_packets), + be64toh(msg->data.session_counters.echo_output_bytes), + be64toh(msg->data.session_counters + .echo_output_packets)); break; } } |