Aesthetic changes

Aesthetic changes, typos fix and delete recursive inclusions.

Signed-off-by: Slawomir_Jankowski <slawomir.jankowski@intel.com>
This commit is contained in:
Slawomir_Jankowski
2019-10-01 14:24:16 +02:00
parent e02821d399
commit 0696ec1f9c
25 changed files with 23 additions and 29 deletions

9
env/posix/ocf_env.c vendored
View File

@@ -7,6 +7,7 @@
#include <sched.h>
#include <execinfo.h>
/* ALLOCATOR */
struct _env_allocator {
/*!< Memory pool ID unique name */
char *name;
@@ -45,7 +46,6 @@ void *env_allocator_new(env_allocator *allocator)
return &item->data;
}
env_allocator *env_allocator_create(uint32_t size, const char *fmt_name, ...)
{
char name[OCF_ALLOCATOR_NAME_MAX] = { '\0' };
@@ -110,8 +110,7 @@ void env_allocator_destroy(env_allocator *allocator)
}
}
/* *** DEBUGING *** */
/* DEBUGING */
#define ENV_TRACE_DEPTH 16
void env_stack_trace(void)
@@ -129,13 +128,13 @@ void env_stack_trace(void)
free(messages);
}
/* *** CRC *** */
/* CRC */
uint32_t env_crc32(uint32_t crc, uint8_t const *data, size_t len)
{
return crc32(crc, data, len);
}
/* *** execution contexts *** */
/* EXECUTION CONTEXTS */
pthread_mutex_t *exec_context_mutex;
static void __attribute__((constructor)) init_execution_context(void)

View File

@@ -11,7 +11,7 @@
#include <stdbool.h>
/* TODO: Move prefix printing to context logger. */
#define OCF_LOGO "Intel(R) OCF"
#define OCF_LOGO "OCF"
#define OCF_PREFIX_SHORT "[" OCF_LOGO "] "
#define OCF_PREFIX_LONG "Open CAS Framework"