|WARNING| pw119638 [PATCH 02/14] cmdline: fix whitespace

checkpatch at dpdk.org checkpatch at dpdk.org
Wed Nov 9 20:15:26 CET 2022


Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/119638

_coding style issues_


WARNING:BRACES: braces {} are not necessary for single statement blocks
#100: FILE: lib/cmdline/cmdline_parse_string.c:80:
+			if (strncmp(buf, str, token_len)) {
 				continue;
 			}

WARNING:BRACES: braces {} are not necessary for single statement blocks
#105: FILE: lib/cmdline/cmdline_parse_string.c:84:
+			if (!cmdline_isendoftoken(*(buf+token_len))) {
 				continue;
 			}

ERROR:SPACING: space prohibited after that open parenthesis '('
#111: FILE: lib/cmdline/cmdline_parse_string.c:89:
+		} while ( (str = get_next_token(str)) != NULL);

WARNING:BRACES: braces {} are not necessary for single statement blocks
#129: FILE: lib/cmdline/cmdline_parse_string.c:152:
+	while ((str = get_next_token(str)) != NULL) {
 		ret++;
 	}

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#160: FILE: lib/cmdline/cmdline_rdline.c:407:
+					while (CIRBUF_GET_LEN(&rdl->right) + CIRBUF_GET_LEN(&rdl->left) <

total: 1 errors, 4 warnings, 59 lines checked


More information about the test-report mailing list