[libsoup] requester-test: fix a printf format compiler warning



commit 096eed1a810f8c09c6e646adaeee248ed914595a
Author: Kalev Lember <kalevlember gmail com>
Date:   Wed Mar 20 17:33:35 2013 +0100

    requester-test: fix a printf format compiler warning
    
    Could use G_GSIZE_FORMAT here, but casting to gulong is simpler.

 tests/requester-test.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tests/requester-test.c b/tests/requester-test.c
index 147ba4c..6e169ad 100644
--- a/tests/requester-test.c
+++ b/tests/requester-test.c
@@ -691,7 +691,8 @@ do_null_char_request (SoupSession *session, const char *encoded_data,
        }
 
        if (nread != expected_len) {
-               debug_printf (1, "      response length mismatch: expected %d, got %lu\n", expected_len, 
nread);
+               debug_printf (1, "      response length mismatch: expected %d, got %lu\n",
+                             expected_len, (gulong)nread);
                errors++;
        } else if (memcmp (buf, expected_data, nread) != 0) {
                debug_printf (1, "      response data mismatch\n");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]