Fix g_print type of off_t from lld to jd 16/262616/1
authorTae-Young Chung <ty83.chung@samsung.com>
Tue, 17 Aug 2021 01:43:02 +0000 (10:43 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Tue, 17 Aug 2021 01:43:15 +0000 (10:43 +0900)
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 <ty83.chung@samsung.com>
tools/inference_engine_cltuner.cpp

index 4c52942ecedb2177c9b5036622c3d2d18aa01688..be99adad1521d66e2bd7eca390034a8fd21d5694 100644 (file)
@@ -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<intmax_t>(fsize));
        g_print("*-------------------------------------------*\n\n\n");
        close(fd);