From: Tae-Young Chung Date: Tue, 17 Aug 2021 01:43:02 +0000 (+0900) Subject: Fix g_print type of off_t from lld to jd X-Git-Tag: submit/tizen/20220105.080154~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e1e136554303f06d80f8cf2f8b0673d5de5f8cb2;p=platform%2Fcore%2Fmultimedia%2Finference-engine-interface.git Fix g_print type of off_t from lld to jd off_t returns long in 32bit environment but long long in 64bit so that it causes build error. jd makes g_print expect a intmax_t-sized integer. Change-Id: I5686483df98aa60910047ba694a9d212af42f9e5 Signed-off-by: Tae-Young Chung --- diff --git a/tools/inference_engine_cltuner.cpp b/tools/inference_engine_cltuner.cpp index 4c52942..be99ada 100644 --- a/tools/inference_engine_cltuner.cpp +++ b/tools/inference_engine_cltuner.cpp @@ -246,7 +246,7 @@ void CheckResult(){ off_t fsize; fsize = lseek(fd, 0, SEEK_END); g_print("************TUNE FILE GENERATED**************\n"); - g_print("Location \n[%s] \nSize \n[%lld]\n", tune_file.c_str(), fsize); + g_print("Location \n[%s] \nSize \n[%jd]\n", tune_file.c_str(), static_cast(fsize)); g_print("*-------------------------------------------*\n\n\n"); close(fd);