Fix Wformat build error 50/179450/1 accepted/tizen/unified/20180521.003527 submit/tizen/20180518.043141
authorSeonah Moon <seonah1.moon@samsung.com>
Fri, 18 May 2018 02:14:20 +0000 (11:14 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Fri, 18 May 2018 02:14:27 +0000 (11:14 +0900)
Change-Id: I16bda4f5dc12be03b8c3472a54154817f67f5ff8

packaging/capi-network-http.spec
src/http_transaction.c

index d2fa659..2ead52e 100644 (file)
@@ -1,6 +1,6 @@
 Name:          capi-network-http
 Summary:       Http Framework
-Version:       0.0.33
+Version:       0.0.34
 Release:       0
 Group:         System/Network
 License:       Apache-2.0
index 41acb26..6894c05 100644 (file)
@@ -248,7 +248,7 @@ void _http_transaction_start_timer(guint msecs, gboolean(*callback) (gpointer),
                return;
 
        if (transaction->timer_event != 0) {
-               ERR("timer is already registered[%ld]", transaction->timer_event);
+               ERR("timer is already registered[%u]", transaction->timer_event);
                return;
        }
 
@@ -258,7 +258,7 @@ void _http_transaction_start_timer(guint msecs, gboolean(*callback) (gpointer),
                return;
        }
 
-       DBG("g_timeout_add[%ld]", t_id);
+       DBG("g_timeout_add[%u]", t_id);
 
        transaction->timer_event = t_id;
 }
@@ -269,7 +269,7 @@ void _http_transaction_stop_timer(__http_transaction_h *transaction)
                return;
 
        if (transaction->timer_event) {
-          DBG("g_source_remove[%ld]", transaction->timer_event);
+          DBG("g_source_remove[%u]", transaction->timer_event);
                g_source_remove(transaction->timer_event);
                transaction->timer_event = 0;
        }
@@ -422,7 +422,9 @@ int _transaction_submit(gpointer user_data)
                write_event = TRUE;
 
        DBG("The write_event[%d/%d] formpost[%d] upload_event[%d]\n",
-                       transaction->write_event, write_event, request->formpost, transaction->upload_event);
+                       transaction->write_event,
+                       write_event, (request->formpost) ? 1 : 0,
+                       transaction->upload_event);
 
        if ((_get_method(request->method) == HTTP_METHOD_POST) && !write_event && !request->formpost) {
                gchar *body = NULL;