|WARNING| pw165233 [RFC 2/4] capture: infrastructure wireshark packet capture

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Jun 9 23:05:02 CEST 2026


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

_coding style issues_


WARNING:TYPO_SPELLING: 'stdio' may be misspelled - perhaps 'studio'?
#159: FILE: lib/capture/capture.c:12:
+#include <stdio.h>
           ^^^^^

WARNING:SPACE_BEFORE_TAB: please, no space before tabs
#250: FILE: lib/capture/capture.c:103:
+^Iuint32_t snaplen;^I      ^I/* amount of data to copy */$

WARNING:LONG_LINE_COMMENT: line length of 103 exceeds 100 columns
#327: FILE: lib/capture/capture.c:180:
+		 * This uses same BPF return value convention as socket filter and pcap_offline_filter.

WARNING:LONG_LINE: line length of 101 exceeds 100 columns
#684: FILE: lib/capture/capture.c:537:
+		n = rte_ring_sc_dequeue_burst(cap->ring, (void **) pkts, CAPTURE_BURST_SIZE, &avail);

WARNING:TYPO_SPELLING: 'stdio' may be misspelled - perhaps 'studio'?
#1042: FILE: lib/capture/filter.c:6:
+#include <stdio.h>
           ^^^^^

WARNING:STRCPY: Prefer strscpy over strcpy - see: https://github.com/KSPP/linux/issues/88
#1090: FILE: lib/capture/filter.c:54:
+	strcpy(flt->expr, filter);

total: 0 errors, 6 warnings, 1031 lines checked
Warning in lib/capture/capture.c:
Using %l format, prefer %PRI*64 if type is [u]int64_t
Warning in lib/capture/capture.c:
Using pthread functions, prefer rte_thread


More information about the test-report mailing list