* [PATCH 0/4] treewide: Fix line continuation formats @ 2017-11-16 15:27 Joe Perches 2017-11-16 15:27 ` [PATCH 4/4] ima: Fix line continuation format Joe Perches 2017-11-16 17:11 ` [PATCH 0/4] treewide: Fix line continuation formats Mimi Zohar 0 siblings, 2 replies; 5+ messages in thread From: Joe Perches @ 2017-11-16 15:27 UTC (permalink / raw) To: linux-security-module Avoid using line continations in formats as that causes unexpected output. Joe Perches (4): rk3399_dmc: Fix line continuation format drm: amd: Fix line continuation formats [media] dibx000_common: Fix line continuation format ima: Fix line continuation format drivers/devfreq/rk3399_dmc.c | 4 ++-- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 11 ++++----- .../amd/powerplay/hwmgr/process_pptables_v1_0.c | 6 ++--- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 27 ++++++++-------------- drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c | 6 ++--- .../gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c | 9 +++----- .../gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c | 6 ++--- drivers/media/dvb-frontends/dibx000_common.c | 8 +++---- security/integrity/ima/ima_template.c | 11 ++++----- 9 files changed, 33 insertions(+), 55 deletions(-) -- 2.15.0 -- To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 4/4] ima: Fix line continuation format 2017-11-16 15:27 [PATCH 0/4] treewide: Fix line continuation formats Joe Perches @ 2017-11-16 15:27 ` Joe Perches 2017-11-16 17:11 ` [PATCH 0/4] treewide: Fix line continuation formats Mimi Zohar 1 sibling, 0 replies; 5+ messages in thread From: Joe Perches @ 2017-11-16 15:27 UTC (permalink / raw) To: linux-security-module Line continuations with excess spacing causes unexpected output. Signed-off-by: Joe Perches <joe@perches.com> --- security/integrity/ima/ima_template.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/security/integrity/ima/ima_template.c b/security/integrity/ima/ima_template.c index 7412d0291ab9..30db39b23804 100644 --- a/security/integrity/ima/ima_template.c +++ b/security/integrity/ima/ima_template.c @@ -377,8 +377,7 @@ int ima_restore_measurement_list(loff_t size, void *buf) break; if (hdr[HDR_TEMPLATE_NAME].len >= MAX_TEMPLATE_NAME_LEN) { - pr_err("attempting to restore a template name \ - that is too long\n"); + pr_err("attempting to restore a template name that is too long\n"); ret = -EINVAL; break; } @@ -389,8 +388,8 @@ int ima_restore_measurement_list(loff_t size, void *buf) template_name[hdr[HDR_TEMPLATE_NAME].len] = 0; if (strcmp(template_name, "ima") == 0) { - pr_err("attempting to restore an unsupported \ - template \"%s\" failed\n", template_name); + pr_err("attempting to restore an unsupported template \"%s\" failed\n", + template_name); ret = -EINVAL; break; } @@ -410,8 +409,8 @@ int ima_restore_measurement_list(loff_t size, void *buf) &(template_desc->fields), &(template_desc->num_fields)); if (ret < 0) { - pr_err("attempting to restore the template fmt \"%s\" \ - failed\n", template_desc->fmt); + pr_err("attempting to restore the template fmt \"%s\" failed\n", + template_desc->fmt); ret = -EINVAL; break; } -- 2.15.0 -- To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 0/4] treewide: Fix line continuation formats 2017-11-16 15:27 [PATCH 0/4] treewide: Fix line continuation formats Joe Perches 2017-11-16 15:27 ` [PATCH 4/4] ima: Fix line continuation format Joe Perches @ 2017-11-16 17:11 ` Mimi Zohar 2017-11-16 17:17 ` Joe Perches 1 sibling, 1 reply; 5+ messages in thread From: Mimi Zohar @ 2017-11-16 17:11 UTC (permalink / raw) To: linux-security-module On Thu, 2017-11-16 at 07:27 -0800, Joe Perches wrote: > Avoid using line continations in formats as that causes unexpected > output. Is having lines greater than 80 characters the preferred method? ?Could you add quotes before the backlash and before the first word on the next line instead? Mimi -- To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 0/4] treewide: Fix line continuation formats 2017-11-16 17:11 ` [PATCH 0/4] treewide: Fix line continuation formats Mimi Zohar @ 2017-11-16 17:17 ` Joe Perches 2017-11-16 19:35 ` Mimi Zohar 0 siblings, 1 reply; 5+ messages in thread From: Joe Perches @ 2017-11-16 17:17 UTC (permalink / raw) To: linux-security-module On Thu, 2017-11-16 at 12:11 -0500, Mimi Zohar wrote: > On Thu, 2017-11-16 at 07:27 -0800, Joe Perches wrote: > > Avoid using line continations in formats as that causes unexpected > > output. > > Is having lines greater than 80 characters the preferred method? yes. > Could you add quotes before the backlash and before the first word on > the next line instead? coalesced formats are preferred. -- To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 0/4] treewide: Fix line continuation formats 2017-11-16 17:17 ` Joe Perches @ 2017-11-16 19:35 ` Mimi Zohar 0 siblings, 0 replies; 5+ messages in thread From: Mimi Zohar @ 2017-11-16 19:35 UTC (permalink / raw) To: linux-security-module On Thu, 2017-11-16 at 09:17 -0800, Joe Perches wrote: > On Thu, 2017-11-16 at 12:11 -0500, Mimi Zohar wrote: > > On Thu, 2017-11-16 at 07:27 -0800, Joe Perches wrote: > > > Avoid using line continations in formats as that causes unexpected > > > output. > > > > Is having lines greater than 80 characters the preferred method? > > yes. > > > Could you add quotes before the backlash and before the first word on > > the next line instead? > > coalesced formats are preferred. In the future, please reference the commit 6f76b6fcaa60 "CodingStyle: Document the exception of not splitting user-visible strings, for grepping" thanks, Mimi -- To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-11-16 19:35 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-11-16 15:27 [PATCH 0/4] treewide: Fix line continuation formats Joe Perches 2017-11-16 15:27 ` [PATCH 4/4] ima: Fix line continuation format Joe Perches 2017-11-16 17:11 ` [PATCH 0/4] treewide: Fix line continuation formats Mimi Zohar 2017-11-16 17:17 ` Joe Perches 2017-11-16 19:35 ` Mimi Zohar
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).