cmd: mvebu: bubt: fix quoted string split across lines
PATCH v3 1/1 cmd: mvebu: bubt: fix quoted string split across lines
Update quoted string alignment to address checkpatch.pl warning originally introduced in
commit f60a66ef5d7d ("cmd: mvebu: bubt: show image boot device").
---
I am sort of inferring that this is the desired fix, preferring line length infractions over split quoted strings. As such, I've combined the static part of the string for grepping and left the dynamic parts on the next line.
v2 change:
- syntax fix
v3 change:
- actually add syntax fix...
--- cmd/mvebu/bubt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
cmd/mvebu/bubt.c +2 -2
@@ -730,8 +730,8 @@ static int bubt_check_boot_mode(const struct bubt_dev *dst)for (int i =0 ; i <ARRAY_SIZE (a38x_boot_modes); i++) {if (a38x_boot_modes[i].id == hdr->blockid) { -printf ("Error: A38x image meant to be " -"booted from \"%s\", not \"%s\"!\n" , +printf ("Error: A38x image meant to be booted from " +"\"%s\", not \"%s\"!\n" , a38x_boot_modes[i].name, dst->name);return -ENOEXEC ; }
Signature · 1 line
2.26.2
PATCH v3 1/1 cmd: mvebu: bubt: fix quoted string split across lines
Ping for review feedback on this patch, it'd be good to have the fix included in the same release as the merge was included.
Joel
Quoted 41 lines · Joel Johnson
Update quoted string alignment to address checkpatch.pl warning originally introduced in
commitf60a66ef5d7d("cmd: mvebu: bubt: show image boot device").Signed-off-by Joel Johnson <[email protected]>---
I am sort of inferring that this is the desired fix, preferring line length infractions over split quoted strings. As such, I've combined the
static part of the string for grepping and left the dynamic parts on the
next line.v2 change:
- syntax fix
v3 change:
- actually add syntax fix...--- cmd/mvebu/bubt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)cmd/mvebu/bubt.c +2
-2@@ -730,8 +730,8 @@ static int bubt_check_boot_mode(const struct bubt_dev *dst)for (int i =0 ; i <ARRAY_SIZE (a38x_boot_modes); i++) {if (a38x_boot_modes[i].id == hdr->blockid) { -printf ("Error: A38x image meant to be " -"booted from \"%s\", not \"%s\"!\n" , +printf ("Error: A38x image meant to be booted from " +"\"%s\", not \"%s\"!\n" , a38x_boot_modes[i].name, dst->name);return -ENOEXEC ;}
PATCH v3 1/1 cmd: mvebu: bubt: fix quoted string split across lines
Hi Joel,
Quoted 2 lines · Joel Johnson
Ping for review feedback on this patch, it'd be good to have the fix included in the same release as the merge was included.
I'll send the pull request later today.
Thanks,
Stefan
Quoted 33 lines
Joel
Quoted 30 lines · Joel Johnson
Update quoted string alignment to address checkpatch.pl warning originally introduced in
commitf60a66ef5d7d("cmd: mvebu: bubt: show image boot device").Signed-off-by Joel Johnson <[email protected]>---
I am sort of inferring that this is the desired fix, preferring line length infractions over split quoted strings. As such, I've combined the static part of the string for grepping and left the dynamic parts on the next line.
v2 change:
? - syntax fix
v3 change:
? - actually add syntax fix...---
?cmd/mvebu/bubt.c | 4 ++--
?1 file changed, 2 insertions(+), 2 deletions(-)cmd/mvebu/bubt.c +0
-0@@ -730,8 +730,8 @@ static int bubt_check_boot_mode(const struct bubt_dev *dst)
Quoted 9 lines
Quoted 9 lines
cmd/mvebu/bubt.c +2
-2???????? for (int i = 0; i < ARRAY_SIZE(a38x_boot_modes); i++) { ???????????? if (a38x_boot_modes[i].id == hdr->blockid) { -??????????????? printf("Error: A38x image meant to be " -?????????????????????? "booted from \"%s\", not \"%s\"!\n", +??????????????? printf("Error: A38x image meant to be booted from " +?????????????????????? "\"%s\", not \"%s\"!\n", ??????????????????????? a38x_boot_modes[i].name, dst->name); ???????????????? return -ENOEXEC;???????????? }
Viele Gr??e,
Stefan
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
PATCH v3 1/1 cmd: mvebu: bubt: fix quoted string split across lines
In reply to Joel JohnsonQuoted 15 lines · Joel Johnson
Update quoted string alignment to address checkpatch.pl warning originally introduced in
commitf60a66ef5d7d("cmd: mvebu: bubt: show image boot device").Signed-off-by Joel Johnson <[email protected]>---
I am sort of inferring that this is the desired fix, preferring line length infractions over split quoted strings. As such, I've combined the static part of the string for grepping and left the dynamic parts on the next line.
Quoted 9 lines
v2 change:
- syntax fix
v3 change:
- actually add syntax fix...--- cmd/mvebu/bubt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)