Merge pull request #11 from mmichal10/printf-rename
Rename logger ops from pritnf to print.
This commit is contained in:
commit
c0ae3e0c5e
@ -294,7 +294,7 @@ static void _cas_ctx_metadata_updater_stop(ocf_metadata_updater_t mu)
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
static int _cas_ctx_logger_printf(ocf_logger_t logger, ocf_logger_lvl_t lvl,
|
static int _cas_ctx_logger_print(ocf_logger_t logger, ocf_logger_lvl_t lvl,
|
||||||
const char *fmt, va_list args)
|
const char *fmt, va_list args)
|
||||||
{
|
{
|
||||||
static const char* level[] = {
|
static const char* level[] = {
|
||||||
@ -325,7 +325,7 @@ static int _cas_ctx_logger_printf(ocf_logger_t logger, ocf_logger_lvl_t lvl,
|
|||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
static int _cas_ctx_logger_printf_rl(ocf_logger_t logger, const char *func_name)
|
static int _cas_ctx_logger_print_rl(ocf_logger_t logger, const char *func_name)
|
||||||
{
|
{
|
||||||
static DEFINE_RATELIMIT_STATE(cas_log_rl, CAS_LOG_RATELIMIT,
|
static DEFINE_RATELIMIT_STATE(cas_log_rl, CAS_LOG_RATELIMIT,
|
||||||
CAS_LOG_BURST_LIMIT);
|
CAS_LOG_BURST_LIMIT);
|
||||||
@ -374,8 +374,8 @@ static const struct ocf_ctx_config ctx_cfg = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
.logger = {
|
.logger = {
|
||||||
.printf = _cas_ctx_logger_printf,
|
.print = _cas_ctx_logger_print,
|
||||||
.printf_rl = _cas_ctx_logger_printf_rl,
|
.print_rl = _cas_ctx_logger_print_rl,
|
||||||
.dump_stack = _cas_ctx_logger_dump_stack,
|
.dump_stack = _cas_ctx_logger_dump_stack,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
2
ocf
2
ocf
@ -1 +1 @@
|
|||||||
Subproject commit f9c22262fb42b25715c690e20fd49513e3b9b3b0
|
Subproject commit d4e929140efb5c3ca28b587442716162639c0541
|
Loading…
Reference in New Issue
Block a user