Update debug prints and methods

Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
This commit is contained in:
Kozlowski Mateusz
2021-05-28 14:08:58 +02:00
parent c17b587444
commit 367fcbfe4e
4 changed files with 23 additions and 5 deletions

View File

@@ -229,7 +229,18 @@ ocf_ctx_t ocf_cache_get_ctx(ocf_cache_t cache)
int __wrap_ocf_log_raw(ocf_logger_t logger, ocf_logger_lvl_t lvl, const char *fmt, ...)
{
function_called();
char buf[1024];
va_list args;
int ret;
va_start(args, fmt);
vsnprintf(buf, sizeof(buf), fmt, args);
va_end(args);
printf(buf);
return 0;
}
unsigned long long progress;