checkpatch: g_test_message does not need a a trailing newline
PATCH 1/1 checkpatch: g_test_message does not need a a trailing newline
--- scripts/checkpatch.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/checkpatch.pl +2 -1
@@ -2802,7 +2802,8 @@ sub process { info_vreport| error_report| warn_report| - info_report}x; + info_report| + g_test_message}x; if ($rawline =~ /\b(?:$qemu_error_funcs)\s*\(.*\".*\\n/) { ERROR("Error messages should not contain newlines\n" . $herecurr);
Signature · 1 line
2.19.1
Quoted 10 lines · Paolo Bonzini
Signed-off-by Paolo Bonzini <[email protected]>--- scripts/checkpatch.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)scripts/checkpatch.pl +0
-0
scripts/checkpatch.pl sub process { · line 2806
Quoted 6 lines
scripts/checkpatch.pl +2
-1@@ -2802,7 +2802,8 @@ sub process { info_vreport| error_report| warn_report| - info_report}x; + info_report| + g_test_message}x;
This perl file use <tab> here, shouldn't we keep the same style?
scripts/checkpatch.pl sub process {
Quoted 4 lines
scripts/checkpatch.pl +0
-0if ($rawline =~ /\b(?:$qemu_error_funcs)\s*\(.*\".*\\n/) { ERROR("Error messages should not contain newlines\n" . $herecurr);
$ ./scripts/checkpatch.pl -f tests/ipmi-bt-test.c
ERROR: Error messages should not contain newlines
#408: FILE: tests/ipmi-bt-test.c:408:
+ g_test_message("Skipping test for non-x86\n");
total: 1 errors, 0 warnings, 430 lines checkedNice :)
Thomas Huth
Reviewed-byQuoted 8 lines · Philippe Mathieu-Daudé
Quoted 5 lines · Paolo Bonzini
Signed-off-by Paolo Bonzini <[email protected]>---
scripts/checkpatch.pl| 3 ++-1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 13 lines
Quoted 11 lines
scripts/checkpatch.pl +0
-0@@ -2802,7 +2802,8 @@ sub process {info_vreport| error_report| warn_report|
- info_report}x;
+ info_report|
+ g_test_message}x;This perl file use <tab> here, shouldn't we keep the same style?
+1
Apart from that:
Paolo Bonzini
AppliedQuoted 33 lines · Philippe Mathieu-Daudé
Quoted 10 lines · Paolo Bonzini
Signed-off-by Paolo Bonzini <[email protected]>---
scripts/checkpatch.pl| 3 ++-1 file changed, 2 insertions(+), 1 deletion(-)scripts/checkpatch.pl +0
-0@@ -2802,7 +2802,8 @@ sub process {Quoted 6 lines
info_vreport| error_report| warn_report|
- info_report}x;
+ info_report|
+ g_test_message}x;This perl file use <tab> here, shouldn't we keep the same style?
Quoted 4 lines
if ($rawline =~ /\b(?:$qemu_error_funcs)\s*\(.*\".*\\n/) { ERROR("Error messages should not contain newlines\n" . $herecurr);
$ ./scripts/checkpatch.pl -f tests/ipmi-bt-test.c ERROR: Error messages should not contain newlines #408: FILE: tests/ipmi-bt-test.c:408: + g_test_message("Skipping test for non-x86\n"); total: 1 errors, 0 warnings, 430 lines checked
Quoted 4 lines
Nice :)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Queued then, thanks. :)
Paolo