diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2017-10-08 19:00:37 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2017-10-08 19:06:22 +0100 |
commit | 4aa2e44b8f8010fe0d3096d89c86f4b6238fc6ac (patch) | |
tree | 93bf3ff510b8b8235cfd14b7b713d00e5d7a1832 /src | |
parent | 9e0ed81fc2a821e60dd3235c4e5598ab45cfcc1e (diff) |
Fix debug_printf data size
Diffstat (limited to 'src')
-rw-r--r-- | src/src/ip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/src/ip.c b/src/src/ip.c index ee91293fa..d17c48216 100644 --- a/src/src/ip.c +++ b/src/src/ip.c @@ -262,7 +262,7 @@ if (fastopen_blob && tcp_fastopen_ok) { DEBUG(D_transport|D_v) debug_printf("non-TFO mode connection attempt to %s, %d data\n", - address, fastopen_blob->len); + address, (unsigned long)fastopen_blob->len); tcp_out_fastopen = fastopen_blob->len > 0 ? 2 : 1; } else if (errno == EINPROGRESS) /* expected if we had no cookie for peer */ @@ -294,8 +294,8 @@ else { legacy_connect: DEBUG(D_transport|D_v) if (fastopen_blob) - debug_printf("non-TFO mode connection attempt to %s, %d data\n", - address, fastopen_blob->len); + debug_printf("non-TFO mode connection attempt to %s, %lu data\n", + address, (unsigned long)fastopen_blob->len); if ((rc = connect(sock, s_ptr, s_len)) >= 0) if ( fastopen_blob && fastopen_blob->data && fastopen_blob->len && send(sock, fastopen_blob->data, fastopen_blob->len, 0) < 0) |