automatic DPDK test reports
 help / color / mirror / Atom feed
From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: Abdullah Sevincer <abdullah.sevincer@intel.com>
Subject: |WARNING| pw127365 [PATCH v15] app/procinfo: display eventdev xstats
Date: Thu, 25 May 2023 08:10:32 +0200 (CEST)	[thread overview]
Message-ID: <20230525061032.8D77312092A@dpdk.org> (raw)
In-Reply-To: <20230525060851.3010561-1-abdullah.sevincer@intel.com>

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

  parent reply	other threads:[~2023-05-25  6:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20230525060851.3010561-1-abdullah.sevincer@intel.com>
2023-05-25  5:58 ` |SUCCESS| " qemudev
2023-05-25  6:02 ` |FAILURE| " qemudev
2023-05-25  6:10 ` checkpatch [this message]
2023-05-25  7:19 ` |SUCCESS| " 0-day Robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230525061032.8D77312092A@dpdk.org \
    --to=checkpatch@dpdk.org \
    --cc=abdullah.sevincer@intel.com \
    --cc=test-report@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).