Fix cache size requirements and some logging

Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
Jan Musial
2022-01-03 14:29:44 +01:00
parent 02ea894252
commit ae18ce274e
3 changed files with 7 additions and 5 deletions

View File

@@ -735,8 +735,8 @@ static void _ocf_mngt_attach_cache_device(ocf_pipeline_t pipeline,
/* Check minimum size of cache device */
if (context->volume_size < OCF_CACHE_SIZE_MIN) {
ocf_cache_log(cache, log_err, "ERROR: Cache cache size must "
"be at least %llu [MiB]\n", OCF_CACHE_SIZE_MIN / MiB);
ocf_cache_log(cache, log_err, "Cache device size must "
"be at least %llu MiB\n", OCF_CACHE_SIZE_MIN / MiB);
OCF_PL_FINISH_RET(pipeline, -OCF_ERR_INVAL_CACHE_DEV);
}