diff options
author | Brendan Shanks <brendan.shanks@teradek.com> | 2018-05-09 15:05:18 -0700 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2018-06-06 10:18:06 +0200 |
commit | 28744ab6be036b020428e93f39862e76d5ecd285 (patch) | |
tree | f4d7cf1818ebd7ca937c4c3cb8f093a3ad14533a /tests | |
parent | e8312e66f7bb96dfde7d29af7f242cc99bd5c74f (diff) | |
download | libnice-28744ab6be036b020428e93f39862e76d5ecd285.tar.gz |
test-pseudotcp(-fuzzy): Fix format string warnings causing build errors on 32-bit
Closes: ttps://gitlab.freedesktop.org/libnice/libnice/issues/45
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-pseudotcp-fuzzy.c | 4 | ||||
-rw-r--r-- | tests/test-pseudotcp.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/test-pseudotcp-fuzzy.c b/tests/test-pseudotcp-fuzzy.c index 4a714e6..a9bf62f 100644 --- a/tests/test-pseudotcp-fuzzy.c +++ b/tests/test-pseudotcp-fuzzy.c @@ -129,7 +129,7 @@ write_to_sock (PseudoTcpSocket *sock) total += wlen; total_read += wlen; if (wlen < (gint) len) { - g_debug ("seeking %ld from %lu", wlen - len, ftell (in)); + g_debug ("seeking %" G_GSIZE_FORMAT " from %lu", wlen - len, ftell (in)); fseek (in, wlen - len, SEEK_CUR); g_assert (!feof (in)); g_debug ("Socket queue full after %d bytes written", total); @@ -355,7 +355,7 @@ static void adjust_clock (PseudoTcpSocket *sock) if (pseudo_tcp_socket_get_next_clock (sock, &timeout)) { timeout -= g_get_monotonic_time () / 1000; - g_debug ("Socket %p: Adjusting clock to %ld ms", sock, timeout); + g_debug ("Socket %p: Adjusting clock to %" G_GUINT64_FORMAT " ms", sock, timeout); if (sock == left) { if (left_clock != 0) g_source_remove (left_clock); diff --git a/tests/test-pseudotcp.c b/tests/test-pseudotcp.c index 1a8391a..e35138a 100644 --- a/tests/test-pseudotcp.c +++ b/tests/test-pseudotcp.c @@ -81,7 +81,8 @@ static void write_to_sock (PseudoTcpSocket *sock) total += wlen; total_read += wlen; if (wlen < (gint) len) { - g_debug ("seeking %ld from %lu", wlen - len, ftell (in)); + g_debug ("seeking %" G_GSIZE_FORMAT " from %lu", wlen - len, + ftell (in)); fseek (in, wlen - len, SEEK_CUR); g_assert (!feof (in)); g_debug ("Socket queue full after %d bytes written", total); |