From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8632C423F2; Mon, 16 Jan 2023 18:28:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 04F5242D28; Mon, 16 Jan 2023 18:27:42 +0100 (CET) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mails.dpdk.org (Postfix) with ESMTP id 0D86E40DFD for ; Mon, 16 Jan 2023 18:27:39 +0100 (CET) Received: by mail-pl1-f178.google.com with SMTP id k18so6936049pll.5 for ; Mon, 16 Jan 2023 09:27:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/t2BBi3UBob1wbIcaBJJfP6F0YFyKFphacO+LsjINu8=; b=IENZGKzgAH7gFHuDKxfoxaFEBQJzIlGs+Z5f9A7bml0Hr1+XK8d+hiXIf9MVXTEhSf ticKliZU+kZXA95bDtozqO01mF7lHjEqF1AcvgDfTxf43XCIt//n2W2LWglBtmb7D/lQ INuwcnuqgVx4jucNOV1AMt7y/0Bh/y5U5ktRni4pfvGUOausoK8vOZA7OPO1/Os0ptkD 7y3XaW9iyC+QGbe+GfuQuoRUh4M8/uniFJodpKBv4z75lzy1T7gjRPKugLY/4MEdSNLQ p6nLwn/DZPtXjW6DhPZU0jisY+aP/sV/ZcUJSyF817KRMPeG8DeHuvRBHuGqMr/cwARS uaeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/t2BBi3UBob1wbIcaBJJfP6F0YFyKFphacO+LsjINu8=; b=k43/+xBbIVT+uAEVRYMvxN4OdsM8IZlmwvAikRaQ9vwW0nNiSfjWbdFAyLLYZijGM+ pOYNY1mCZLPcUvVhKtyFYOQKTelIavLf1IPLgwPCX20TAXm/2zEUHSnav2HRpQixphz8 eMhmfc4uy/Fr9CpAc8L62ucfbcYitGqBlu9YrmxS6Yjj551tAsldhNDDUAbnVeGc8YtY q3qNDUf8y5jDnt54dz3914PMDQgAb2f1qztS/+QWXwa4jQL56ZXUCHo+eu2uP1Ilkcb0 LyT2C01VcSC372fTYhhyQmnMr7LaE07kyY8/nJIjBIFVtHrw+gZ0/PUTG6P/xrexqflJ F9pg== X-Gm-Message-State: AFqh2krLBbUM8ykVI2d/EJIOFQkA+Joo1xa0m8TpE1+UcrzlbYThZo/5 +GByJbC/f/DmcxPeLSvmWVYvRI7azXecr/N2LCA= X-Google-Smtp-Source: AMrXdXvzYzoCLZFyV11tEJWKZ7sf+2QF7Sh+bBlOd0P1a6GBw+obrPNxHZYgZ47Ki6+J6/fB4Bl2Hw== X-Received: by 2002:a17:902:f786:b0:192:c426:d83f with SMTP id q6-20020a170902f78600b00192c426d83fmr499207pln.64.1673890058014; Mon, 16 Jan 2023 09:27:38 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id j3-20020a170902c3c300b001945b984341sm3992635plj.100.2023.01.16.09.27.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 09:27:37 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Konstantin Ananyev , David Hunt , Anatoly Burakov Subject: [PATCH 5/7] examples: fix whitespace Date: Mon, 16 Jan 2023 09:27:29 -0800 Message-Id: <20230116172732.84976-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230116172732.84976-1-stephen@networkplumber.org> References: <20230116172732.84976-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The style standard is to use blank after keywords. I.e "if (" not "if(" Signed-off-by: Stephen Hemminger --- examples/ip_reassembly/main.c | 2 +- examples/l3fwd-power/main.c | 4 ++-- examples/l3fwd/main.c | 4 ++-- examples/multi_process/symmetric_mp/main.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/ip_reassembly/main.c b/examples/ip_reassembly/main.c index bd0b1d31decf..7e84b4944759 100644 --- a/examples/ip_reassembly/main.c +++ b/examples/ip_reassembly/main.c @@ -300,7 +300,7 @@ send_single_packet(struct rte_mbuf *m, uint16_t port) TX_LCORE_STAT_UPDATE(&qconf->tx_stat, queue, 1); txmb->m_table[txmb->head] = m; - if(++txmb->head == len) + if (++txmb->head == len) txmb->head = 0; return 0; diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index fd3ade330f82..3ef6e5a1ccc6 100644 --- a/examples/l3fwd-power/main.c +++ b/examples/l3fwd-power/main.c @@ -1787,11 +1787,11 @@ parse_config(const char *q_arg) while ((p = strchr(p0,'(')) != NULL) { ++p; - if((p0 = strchr(p,')')) == NULL) + if ((p0 = strchr(p,')')) == NULL) return -1; size = p0 - p; - if(size >= sizeof(s)) + if (size >= sizeof(s)) return -1; snprintf(s, sizeof(s), "%.*s", size, p); diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c index 5198ff30dd00..70054183e1bb 100644 --- a/examples/l3fwd/main.c +++ b/examples/l3fwd/main.c @@ -516,11 +516,11 @@ parse_config(const char *q_arg) while ((p = strchr(p0,'(')) != NULL) { ++p; - if((p0 = strchr(p,')')) == NULL) + if ((p0 = strchr(p,')')) == NULL) return -1; size = p0 - p; - if(size >= sizeof(s)) + if (size >= sizeof(s)) return -1; snprintf(s, sizeof(s), "%.*s", size, p); diff --git a/examples/multi_process/symmetric_mp/main.c b/examples/multi_process/symmetric_mp/main.c index 1ff85875dfdf..8d1119bd8483 100644 --- a/examples/multi_process/symmetric_mp/main.c +++ b/examples/multi_process/symmetric_mp/main.c @@ -156,7 +156,7 @@ smp_parse_args(int argc, char **argv) /* get the port numbers from the port mask */ RTE_ETH_FOREACH_DEV(i) - if(port_mask & (1 << i)) + if (port_mask & (1 << i)) ports[num_ports++] = (uint8_t)i; ret = optind-1; @@ -471,7 +471,7 @@ main(int argc, char **argv) if (num_ports & 1) rte_exit(EXIT_FAILURE, "Application must use an even number of ports\n"); for(i = 0; i < num_ports; i++){ - if(proc_type == RTE_PROC_PRIMARY) + if (proc_type == RTE_PROC_PRIMARY) if (smp_port_init(ports[i], mp, (uint16_t)num_procs) < 0) rte_exit(EXIT_FAILURE, "Error initialising ports\n"); } -- 2.39.0