Add a newline escape in 'invalid checksum' messages

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
This commit is contained in:
Rafal Stefanowski 2020-12-17 11:13:42 +01:00
parent 08af1192d4
commit 4c42d62f97
2 changed files with 3 additions and 3 deletions

View File

@ -95,11 +95,11 @@ static void ocf_metadata_check_crc_skip(ocf_pipeline_t pipeline,
/* Checksum does not match */ /* Checksum does not match */
if (!clean_shutdown) { if (!clean_shutdown) {
ocf_cache_log(cache, log_warn, ocf_cache_log(cache, log_warn,
"Loading %s WARNING, invalid checksum", "Loading %s WARNING, invalid checksum\n",
ocf_metadata_segment_names[segment_id]); ocf_metadata_segment_names[segment_id]);
} else { } else {
ocf_cache_log(cache, log_err, ocf_cache_log(cache, log_err,
"Loading %s ERROR, invalid checksum", "Loading %s ERROR, invalid checksum\n",
ocf_metadata_segment_names[segment_id]); ocf_metadata_segment_names[segment_id]);
OCF_PL_FINISH_RET(pipeline, -OCF_ERR_INVAL); OCF_PL_FINISH_RET(pipeline, -OCF_ERR_INVAL);
} }

View File

@ -116,7 +116,7 @@ static void ocf_metadata_check_crc_sb_config(ocf_pipeline_t pipeline,
if (crc != sb_config->checksum[segment]) { if (crc != sb_config->checksum[segment]) {
/* Checksum does not match */ /* Checksum does not match */
ocf_cache_log(cache, log_err, ocf_cache_log(cache, log_err,
"Loading %s ERROR, invalid checksum", "Loading %s ERROR, invalid checksum\n",
ocf_metadata_segment_names[segment]); ocf_metadata_segment_names[segment]);
OCF_PL_FINISH_RET(pipeline, -OCF_ERR_INVAL); OCF_PL_FINISH_RET(pipeline, -OCF_ERR_INVAL);
} }