Fix logging core state on cache load

Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
Jan Musial 2020-07-28 14:52:15 +02:00
parent 0e1efb5b04
commit 2ee1e4c8dd

View File

@ -2022,7 +2022,10 @@ static void _ocf_mngt_cache_unplug(ocf_cache_t cache, bool stop,
static int _ocf_mngt_cache_load_core_log(ocf_core_t core, void *cntx)
{
ocf_core_log(core, log_info, "Successfully added\n");
if (ocf_core_state_active == ocf_core_get_state(core))
ocf_core_log(core, log_info, "Successfully added\n");
else
ocf_core_log(core, log_warn, "Failed to initialize\n");
return 0;
}