diff options
author | Sander Vrijders <[email protected]> | 2016-03-25 11:54:30 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2016-03-25 11:54:30 +0100 |
commit | 35b00759a9616033aa19177ba3281eb9643509d2 (patch) | |
tree | c5c15dbe5ac35578aea922ccd5f7d07c9bc00f47 /src/lib | |
parent | dc8e71461eb6c1c72dbfd38261a1616c053e7bbd (diff) | |
parent | 30da4c65b62b5642f3f603b883e695ce2df2e50b (diff) | |
download | ouroboros-35b00759a9616033aa19177ba3281eb9643509d2.tar.gz ouroboros-35b00759a9616033aa19177ba3281eb9643509d2.zip |
Merged in dstaesse/ouroboros/be-logfix (pull request #41)
lib/ipcpd: fixed logging mistake
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/shm_du_map.c | 5 | ||||
-rw-r--r-- | src/lib/tests/shm_du_map_test.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/shm_du_map.c b/src/lib/shm_du_map.c index dc73077f..74affc13 100644 --- a/src/lib/shm_du_map.c +++ b/src/lib/shm_du_map.c @@ -28,6 +28,11 @@ #include <malloc.h> #include <string.h> +#define OUROBOROS_PREFIX "shm_du_map" + +#include <ouroboros/logs.h> + + #define SHM_BLOCKS_SIZE (SHM_BLOCKS_IN_MAP * SHM_DU_BUFF_BLOCK_SIZE) #define SHM_FILE_SIZE (SHM_BLOCKS_SIZE + 2 * sizeof (size_t) \ + sizeof(pthread_mutex_t)) diff --git a/src/lib/tests/shm_du_map_test.c b/src/lib/tests/shm_du_map_test.c index d9b44732..f636c941 100644 --- a/src/lib/tests/shm_du_map_test.c +++ b/src/lib/tests/shm_du_map_test.c @@ -27,6 +27,10 @@ #include <sys/mman.h> #include <pthread.h> +#define OUROBOROS_PREFIX "lib/test/shm_du_map_test" + +#include <ouroboros/logs.h> + #define SIZE_OF_DU_BUFF 24 #define TEST_BUFF_SIZE (SHM_DU_BUFF_BLOCK_SIZE - SIZE_OF_DU_BUFF) |