|WARNING| pw127365 [PATCH v15] app/procinfo: display eventdev xstats
checkpatch at dpdk.org
checkpatch at dpdk.org
Thu May 25 08:10:32 CEST 2023
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/127365
_coding style issues_
WARNING:SSCANF_TO_KSTRTO: Prefer kstrto<type> to single variable sscanf
#152: FILE: app/proc-info/main.c:269:
+ if (sscanf(list, "%hu", &evdev_id) == 1) {
+ if (evdev_id >= RTE_EVENT_MAX_DEVS) {
+ printf("Invalid eventdev id: %d
", evdev_id);
+ return -EINVAL;
+ }
+ }
WARNING:SSCANF_TO_KSTRTO: Prefer kstrto<type> to single variable sscanf
#172: FILE: app/proc-info/main.c:289:
+ if (sscanf(list, "%hu", &evdev_id) == 1) {
+ if (evdev_id >= RTE_EVENT_MAX_DEVS) {
+ printf("Invalid eventdev id: %d
", evdev_id);
+ return -EINVAL;
+ }
+ }
WARNING:SSCANF_TO_KSTRTO: Prefer kstrto<type> to single variable sscanf
#192: FILE: app/proc-info/main.c:309:
+ if (sscanf(list, "%hu", &evdev_id) == 1) {
+ if (evdev_id >= RTE_EVENT_MAX_DEVS) {
+ printf("Invalid eventdev id: %d
", evdev_id);
+ return -EINVAL;
+ }
+ }
total: 0 errors, 3 warnings, 480 lines checked
More information about the test-report
mailing list