Skip to contentSkip to conversation

checkpatch: g_test_message does not need a a trailing newline

PATCH In review Paolo Bonzini 3 participants 4 messages Nov 21, 2018 – Nov 22, 2018 Checkpatch

lore
Share & tools
lore
#0 lore raw

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
index eccd656c41..d27bc51f8c 100755
@@ -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
Reviewed-by Tested-by on v1 1/1
#1 lore raw
Quoted 10 lines · Paolo Bonzini
---
  scripts/checkpatch.pl | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
scripts/checkpatch.pl +0 -0
index eccd656c41..d27bc51f8c 100755

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 -0
  	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

Nice :)

Reviewed-by
#2 lore raw
Quoted 8 lines · Philippe Mathieu-Daudé
Quoted 5 lines · Paolo Bonzini

---
  scripts/checkpatch.pl | 3 ++-

  1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 13 lines
Quoted 11 lines
scripts/checkpatch.pl +0 -0
index eccd656c41..d27bc51f8c 100755
@@ -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:

author Applied
#3 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 33 lines · Philippe Mathieu-Daudé
Quoted 10 lines · Paolo Bonzini

---
  scripts/checkpatch.pl | 3 ++-

  1 file changed, 2 insertions(+), 1 deletion(-)
scripts/checkpatch.pl +0 -0
index eccd656c41..d27bc51f8c 100755
@@ -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 :)

Queued then, thanks. :)

Paolo