[dpdk-test-report] |WARNING| pw98393 [PATCH v5 7/9] app/dumpcap: add new packet capture application

checkpatch at dpdk.org checkpatch at dpdk.org
Wed Sep 8 23:52:27 CEST 2021


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

_coding style issues_


WARNING:STATIC_CONST_CHAR_ARRAY: char * array declaration might be better as static const
#605: FILE: app/dumpcap/main.c:505:
+	const char *args[] = {

WARNING:TYPO_SPELLING: 'CREAT' may be misspelled - perhaps 'CREATE'?
#713: FILE: app/dumpcap/main.c:613:
+		fd = open(output_name, O_WRONLY | O_CREAT, mode);

WARNING:UNNECESSARY_ELSE: else is not generally useful after a break or return
#733: FILE: app/dumpcap/main.c:633:
+		return pcapng;
+	} else {

total: 0 errors, 3 warnings, 850 lines checked


More information about the test-report mailing list