From: Sooyoung Ha Date: Fri, 1 Aug 2014 06:31:33 +0000 (+0900) Subject: log: fix runtime error and MacOS build fail X-Git-Tag: TizenStudio_2.0_p3.0~407^2~88^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb10008b3d50e159368739dd154ecd464d68738c;p=sdk%2Femulator%2Fqemu.git log: fix runtime error and MacOS build fail Change-Id: I80581c8810595dd6166989b8a609c5de9031470d Signed-off-by: Sooyoung Ha --- diff --git a/tizen/src/util/osutil.h b/tizen/src/util/osutil.h index f24a6b5..f885823 100644 --- a/tizen/src/util/osutil.h +++ b/tizen/src/util/osutil.h @@ -84,14 +84,11 @@ static inline int get_timeofday(char *buf, size_t size) qemu_gettimeofday(&tv); ti = tv.tv_sec; -#ifndef CONFIG_WIN32 - localtime_r(&ti, ptm); -#else + /* In this case, localtime_r() function is not necessary. */ ptm = localtime(&ti); -#endif ret = strftime(buf, size, "%H:%M:%S", ptm); - return ret + g_snprintf(buf + ret, size - ret, ".%06ld", tv.tv_usec); + return ret + g_snprintf(buf + ret, size - ret, ".%06ld", (long)tv.tv_usec); } int get_number_of_processors(void);