Skip to content

Commit

Permalink
Fix log format warning
Browse files Browse the repository at this point in the history
The expression port + 1 is promoted to int, but printed as uint16_t.
  • Loading branch information
rom1v committed Apr 13, 2020
1 parent 927d655 commit 7eb16ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ enable_tunnel_reverse_any_port(struct server *server,
// check before incrementing to avoid overflow on port 65535
if (port < port_range.last) {
LOGW("Could not listen on port %" PRIu16", retrying on %" PRIu16,
port, port + 1);
port, (uint16_t) (port + 1));
port++;
continue;
}
Expand Down

0 comments on commit 7eb16ce

Please sign in to comment.