Remove OCF prefix

This commit is contained in:
wolszews 2018-12-06 15:44:17 +01:00 committed by Wojciech Olszewski
parent d037a858a0
commit 0cb11b0d3c
4 changed files with 3 additions and 5 deletions

View File

@ -585,7 +585,7 @@ static int _ocf_engine_refresh(struct ocf_request *rq)
else
ENV_BUG();
} else {
ENV_WARN(true, OCF_PREFIX_SHORT" Inconsistent request");
ENV_WARN(true, "Inconsistent request");
rq->error = -EINVAL;
/* Complete request */

View File

@ -33,7 +33,7 @@ struct ocf_ctx {
};
#define ocf_log_prefix(ctx, lvl, prefix, fmt, ...) \
ocf_log_raw(ctx->logger, lvl, OCF_PREFIX_SHORT prefix fmt, ##__VA_ARGS__)
ocf_log_raw(ctx->logger, lvl, prefix fmt, ##__VA_ARGS__)
#define ocf_log(ctx, lvl, fmt, ...) \
ocf_log_prefix(ctx, lvl, "", fmt, ##__VA_ARGS__)

View File

@ -119,7 +119,7 @@ void env_allocator_destroy(env_allocator *allocator)
if (allocator) {
if (env_atomic_read(&allocator->count)) {
fprintf(stderr, "Not all object deallocated\n");
ENV_WARN(true, OCF_PREFIX_SHORT" Cleanup problem\n");
ENV_WARN(true, "Cleanup problem\n");
}
free(allocator->name);

View File

@ -13,8 +13,6 @@
#define __USE_GNU
#endif
#define OCF_PREFIX_SHORT "OCF"
#include <linux/limits.h>
#include <linux/stddef.h>
#include <stdint.h>