Use %z format string for printing size_t types 01/194801/2
authorJi-hoon Lee <dalton.lee@samsung.com>
Fri, 7 Dec 2018 07:41:35 +0000 (16:41 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Fri, 7 Dec 2018 08:02:14 +0000 (08:02 +0000)
Change-Id: Ie1b3e0d0505ff1fb89ca5f4c25c04a236a391ff3

src/sclconnection-isf.cpp

index 8b3cfbe..ca1a86c 100644 (file)
@@ -183,8 +183,7 @@ static void slot_ise_show(const scim::HelperAgent *agent, int ic, char *buf, siz
                 if (len > (sizeof(Ise_Context) + ise_context.imdata_size))
                     callback->on_set_mime_type(buf + sizeof(ise_context) + ise_context.imdata_size);
             } else {
-                LOGD("\n-=-= WARNING - buf %p len %lu size %lu \n",
-                    buf, (long unsigned int)len, (long unsigned int)sizeof(ise_context));
+                LOGD("\n-=-= WARNING - buf %p len %zu size %zu\n", buf, len, sizeof(ise_context));
             }
             CSCLCoreUI* ui = impl->get_core_ui();
             if (ui) {