aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLi Xiaoming <lixm.fnst@cn.fujitsu.com>2019-09-04 12:50:12 +0800
committerLi Xiaoming <lixm.fnst@cn.fujitsu.com>2019-09-04 12:59:18 +0800
commitbe559c923aa00ffcb2e1347607616c6a8c862ab5 (patch)
tree6bdb59286c564ffaef177e580933f6b55edd25c7
parentcc34edb721fe3e0caf02321468b4c58b19974ee9 (diff)
fix(network-util.c): Remove -Wformat warning
agl-service-network/binding/network-util.c:281:16: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘gsize’ {aka ‘unsigned int’} [-Wformat=] AFB_WARNING("Can't handle variants with more than one children (%lu)", nitems); Bug-AGL: SPEC-2422 Change-Id: I0805dd2c1828818000cc92b7a8ea1e4c90e39073 Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
-rw-r--r--binding/network-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binding/network-util.c b/binding/network-util.c
index f5a0d41..0dab808 100644
--- a/binding/network-util.c
+++ b/binding/network-util.c
@@ -278,7 +278,7 @@ json_object *simple_gvariant_to_json(GVariant *var, json_object *parent,
g_variant_iter_init(&iter, var);
nitems = g_variant_iter_n_children(&iter);
if (nitems != 1) {
- AFB_WARNING("Can't handle variants with more than one children (%lu)", nitems);
+ AFB_WARNING("Can't handle variants with more than one children (%u)", nitems);
break;
}