Merge pull request #150 from robertbaldyga/dont-print-uuid-as-a-string

Stop treating UUID as ANSI string
This commit is contained in:
Michał Wysoczański 2019-05-10 12:58:26 +02:00 committed by GitHub
commit 547cd7fe04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
} }