From f588fb2a0e812459cd3ff867d600f94a3f445549 Mon Sep 17 00:00:00 2001 From: Daniel Walker Date: Wed, 27 Jul 2022 12:06:05 -0400 Subject: [PATCH] replaced the SYS_gettid macro with __NR_gettid; changed the version to 6.0.1 --- README.rst | 4 ++-- changelog | 3 +++ include/vasq/definitions.h | 2 +- source/logger.c | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 5eb17a2..368d2ae 100644 --- a/README.rst +++ b/README.rst @@ -3,8 +3,8 @@ Vanilla Squad ============= :Author: Daniel Walker -:Version: 6.0.0 -:Date: 2022-07-24 +:Version: 6.0.1 +:Date: 2022-07-27 Overview ======== diff --git a/changelog b/changelog index 6c96112..fdbaed0 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,6 @@ +6.0.1: + - Replaced the macro SYS_gettid with __NR_gettid. + 6.0.0: - Log processors are now required to leave the buffer null-terminated. - vasqHexDump now only makes one call to write. diff --git a/include/vasq/definitions.h b/include/vasq/definitions.h index 1ea4cd9..73541e0 100644 --- a/include/vasq/definitions.h +++ b/include/vasq/definitions.h @@ -9,7 +9,7 @@ /** * @brief Current version of the library. */ -#define VASQ_VERSION "6.0.0" +#define VASQ_VERSION "6.0.1" #ifndef NO_OP #define NO_OP ((void)0) diff --git a/source/logger.c b/source/logger.c index 94cd6f7..a936755 100644 --- a/source/logger.c +++ b/source/logger.c @@ -127,7 +127,7 @@ vlogToBuffer(const vasqLogger *logger, vasqLogLevel_t level, VASQ_CONTEXT_DECL, case 'p': vasqIncSnprintf(dst, &remaining, "%li", (long)getpid()); break; #ifdef __linux__ - case 'T': vasqIncSnprintf(dst, &remaining, "%li", syscall(SYS_gettid)); break; + case 'T': vasqIncSnprintf(dst, &remaining, "%li", syscall(__NR_gettid)); break; #endif case 'L': vasqIncSnprintf(dst, &remaining, "%s", logLevelName(level)); break;