Commit 72bf83b0 authored by Joe Perches's avatar Joe Perches Committed by Mimi Zohar

ima: Fix line continuation format

Line continuations with excess spacing causes unexpected output.

Based on commit 6f76b6fc ("CodingStyle: Document the exception of
not splitting user-visible strings, for grepping") recommendation.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarMimi Zohar <zohar@linux.vnet.ibm.com>
parent da1b0029
...@@ -377,8 +377,7 @@ int ima_restore_measurement_list(loff_t size, void *buf) ...@@ -377,8 +377,7 @@ int ima_restore_measurement_list(loff_t size, void *buf)
break; break;
if (hdr[HDR_TEMPLATE_NAME].len >= MAX_TEMPLATE_NAME_LEN) { if (hdr[HDR_TEMPLATE_NAME].len >= MAX_TEMPLATE_NAME_LEN) {
pr_err("attempting to restore a template name \ pr_err("attempting to restore a template name that is too long\n");
that is too long\n");
ret = -EINVAL; ret = -EINVAL;
break; break;
} }
...@@ -389,8 +388,8 @@ int ima_restore_measurement_list(loff_t size, void *buf) ...@@ -389,8 +388,8 @@ int ima_restore_measurement_list(loff_t size, void *buf)
template_name[hdr[HDR_TEMPLATE_NAME].len] = 0; template_name[hdr[HDR_TEMPLATE_NAME].len] = 0;
if (strcmp(template_name, "ima") == 0) { if (strcmp(template_name, "ima") == 0) {
pr_err("attempting to restore an unsupported \ pr_err("attempting to restore an unsupported template \"%s\" failed\n",
template \"%s\" failed\n", template_name); template_name);
ret = -EINVAL; ret = -EINVAL;
break; break;
} }
...@@ -410,8 +409,8 @@ int ima_restore_measurement_list(loff_t size, void *buf) ...@@ -410,8 +409,8 @@ int ima_restore_measurement_list(loff_t size, void *buf)
&(template_desc->fields), &(template_desc->fields),
&(template_desc->num_fields)); &(template_desc->num_fields));
if (ret < 0) { if (ret < 0) {
pr_err("attempting to restore the template fmt \"%s\" \ pr_err("attempting to restore the template fmt \"%s\" failed\n",
failed\n", template_desc->fmt); template_desc->fmt);
ret = -EINVAL; ret = -EINVAL;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment