Fix log format warning
The expression port + 1 is promoted to int, but printed as uint16_t.
This commit is contained in:
parent
927d655ff6
commit
7eb16ce364
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ enable_tunnel_reverse_any_port(struct server *server,
|
||||||
// check before incrementing to avoid overflow on port 65535
|
// check before incrementing to avoid overflow on port 65535
|
||||||
if (port < port_range.last) {
|
if (port < port_range.last) {
|
||||||
LOGW("Could not listen on port %" PRIu16", retrying on %" PRIu16,
|
LOGW("Could not listen on port %" PRIu16", retrying on %" PRIu16,
|
||||||
port, port + 1);
|
port, (uint16_t) (port + 1));
|
||||||
port++;
|
port++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue