Add a newline escape in 'invalid checksum' messages
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
This commit is contained in:
parent
08af1192d4
commit
4c42d62f97
@ -95,11 +95,11 @@ static void ocf_metadata_check_crc_skip(ocf_pipeline_t pipeline,
|
||||
/* Checksum does not match */
|
||||
if (!clean_shutdown) {
|
||||
ocf_cache_log(cache, log_warn,
|
||||
"Loading %s WARNING, invalid checksum",
|
||||
"Loading %s WARNING, invalid checksum\n",
|
||||
ocf_metadata_segment_names[segment_id]);
|
||||
} else {
|
||||
ocf_cache_log(cache, log_err,
|
||||
"Loading %s ERROR, invalid checksum",
|
||||
"Loading %s ERROR, invalid checksum\n",
|
||||
ocf_metadata_segment_names[segment_id]);
|
||||
OCF_PL_FINISH_RET(pipeline, -OCF_ERR_INVAL);
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ static void ocf_metadata_check_crc_sb_config(ocf_pipeline_t pipeline,
|
||||
if (crc != sb_config->checksum[segment]) {
|
||||
/* Checksum does not match */
|
||||
ocf_cache_log(cache, log_err,
|
||||
"Loading %s ERROR, invalid checksum",
|
||||
"Loading %s ERROR, invalid checksum\n",
|
||||
ocf_metadata_segment_names[segment]);
|
||||
OCF_PL_FINISH_RET(pipeline, -OCF_ERR_INVAL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user