Skip to content

Commit

Permalink
replaced the SYS_gettid macro with __NR_gettid; changed the version t…
Browse files Browse the repository at this point in the history
…o 6.0.1
  • Loading branch information
nickeldan committed Jul 27, 2022
1 parent b095f25 commit f588fb2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
========
Expand Down
3 changes: 3 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion include/vasq/definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion source/logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f588fb2

Please sign in to comment.