From 17f0d23e3736fad04f1888e9611d00bb4b4b581e Mon Sep 17 00:00:00 2001 From: Yeongjong Lee Date: Thu, 13 Feb 2020 11:30:27 +0900 Subject: [PATCH] vg_common_json: use %zu for size_t Summary: Fixes a compiler warning ``` ../src/static_libs/vg_common/vg_common_json.c: In function '_get_key_val': ../src/static_libs/vg_common/vg_common_json.c:16:34: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'unsigned int' [-Wformat=] ``` Test Plan: ninja build Reviewers: Hermet, jsuya Reviewed By: jsuya Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11327 --- src/static_libs/vg_common/vg_common_json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static_libs/vg_common/vg_common_json.c b/src/static_libs/vg_common/vg_common_json.c index a8f46832b8..2092b852a5 100644 --- a/src/static_libs/vg_common/vg_common_json.c +++ b/src/static_libs/vg_common/vg_common_json.c @@ -13,7 +13,7 @@ static char* _get_key_val(void *key) { static char buf[30]; - snprintf(buf, sizeof(buf), "%ld", (size_t) key); + snprintf(buf, sizeof(buf), "%zu", (size_t) key); return buf; }