Merge pull request #8 from wolszews/remove-log-prefix

Remove OCF prefix
This commit is contained in:
Michał Mielewczyk
2018-12-07 15:40:47 +01:00
committed by GitHub
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__)