Stop treating UUID as ANSI string

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga 2019-05-10 12:49:51 +02:00
parent 94ef5a5249
commit 580d5506cd

View File

@ -310,9 +310,8 @@ static int __ocf_mngt_try_find_core_id(ocf_cache_t cache,
struct ocf_mngt_core_config *cfg, ocf_core_id_t tmp_core_id) struct ocf_mngt_core_config *cfg, ocf_core_id_t tmp_core_id)
{ {
if (tmp_core_id == OCF_CORE_MAX) { if (tmp_core_id == OCF_CORE_MAX) {
/* FIXME: uuid.data could be not NULL-terminated ANSI string */ ocf_cache_log(cache, log_err, "Core with given uuid not found "
ocf_cache_log(cache, log_err, "Core with uuid %s not found in " "in cache metadata\n");
"cache metadata\n", (char*) cfg->uuid.data);
return -OCF_ERR_CORE_NOT_AVAIL; return -OCF_ERR_CORE_NOT_AVAIL;
} }