From 0409394b97bc6818967455c1adf643423cbf8fce Mon Sep 17 00:00:00 2001 From: Li Xiaoming Date: Wed, 4 Sep 2019 19:36:53 +0800 Subject: fix(bluetooth-pbap-binding.c): Remove -Wformat warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit agl-service-bluetooth/agl-service-bluetooth-pbap/binding/ bluetooth-pbap-binding.c:173:13: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] AFB_ERROR("Read only %ld/%ld bytes from %s", n, size, filename); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ agl-service-bluetooth/agl-service-bluetooth-pbap/binding/ bluetooth-pbap-binding.c:173:13: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 8 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] Bug-AGL: SPEC-2422 Change-Id: I90504163278b3bbd415b73021bd32eaa2a759572 Signed-off-by: Li Xiaoming --- binding/bluetooth-pbap-binding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'binding') diff --git a/binding/bluetooth-pbap-binding.c b/binding/bluetooth-pbap-binding.c index e2f5c55..13421e5 100644 --- a/binding/bluetooth-pbap-binding.c +++ b/binding/bluetooth-pbap-binding.c @@ -170,7 +170,7 @@ static char *get_vcard_xfer(gchar *filename) fseek(fp, 0L, SEEK_SET); n = fread(vcard_data, 1, size, fp); if (n != size) { - AFB_ERROR("Read only %ld/%ld bytes from %s", n, size, filename); + AFB_ERROR("Read only %zu/%zu bytes from %s", n, size, filename); return NULL; } -- cgit 1.2.3-korg