diff --git a/include/client/logging.hpp b/include/client/logging.hpp index cc19682f34f2f04e451145a8c0255b8cb5e9de15..5eeab331ed041d8c8b3d8fde2992901aca0604f5 100644 --- a/include/client/logging.hpp +++ b/include/client/logging.hpp @@ -290,16 +290,11 @@ mini_gmtime_r(const time_t* timep, struct tm* tm) { return tm; } -static inline struct tm* -mini_gmtime(const time_t* timep) { - static struct tm tm; - return mini_gmtime_r(timep, &tm); -} - static inline ssize_t format_timeval(struct timeval* tv, char* buf, size_t sz) { ssize_t written = -1; - const struct tm* gm = mini_gmtime(&tv->tv_sec); + struct tm tm; + const struct tm* gm = mini_gmtime_r(&tv->tv_sec, &tm); written = (ssize_t) strftime(buf, sz, "%Y-%m-%d %H:%M:%S", gm); diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt index 2956c6e8e401fac3089d410c76e252f2835195d6..841a329394f5340c6784acee3e8483b022bd2a12 100644 --- a/src/client/CMakeLists.txt +++ b/src/client/CMakeLists.txt @@ -180,7 +180,6 @@ if (GKFS_BUILD_USER_LIB) fmt::fmt Threads::Threads Microsoft.GSL::GSL - Syscall_intercept::Syscall_intercept ) endif() @@ -193,7 +192,6 @@ target_link_libraries( fmt::fmt Threads::Threads Microsoft.GSL::GSL - Syscall_intercept::Syscall_intercept ) # Enable MSGPack metrics for intercept only if (GKFS_ENABLE_CLIENT_METRICS)