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 B31FEA0093; Thu, 10 Nov 2022 00:25:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 33EB942D4D; Thu, 10 Nov 2022 00:25:10 +0100 (CET) Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by mails.dpdk.org (Postfix) with ESMTP id 6AEF042D3E for ; Thu, 10 Nov 2022 00:25:08 +0100 (CET) Received: by mail-pj1-f43.google.com with SMTP id l6so305010pjj.0 for ; Wed, 09 Nov 2022 15:25:08 -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=/QhJhFhZiPiDsPwY2VTvBHBSaly3Zeo3SiVUnEcBcCg=; b=LbnEILbti2qbtKfgVnwwwKBd5qv6IWoKKDqncfDN5v4JuLlvdRGF8QeFELt7RP2fDv n+i4eKgOmAq/+oejhMSmhe5BhKcKfanM6BzP3zlMyA48gXLsla3f2gzQbvv0oVSTJP7E UT/UXLVXnNLKK3/k1sGk4GRUWJutilOa1jQkAiRi2qQ5PxVKydZ9dkRTSA/OymufBByR Sl4NdlDF4lO9kVih+mTq7fuD6FTc8eUMyo+mz705kupsfXmf9fL0laWLk20BAqunbLz3 ofDjmw5QNFVUxKMf8kQpUWqW8rOOAtu2k6XIUvqKEmjGjL5NwJI4jRt6wsnllmr0zQP3 Qt7Q== 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=/QhJhFhZiPiDsPwY2VTvBHBSaly3Zeo3SiVUnEcBcCg=; b=768mlp6+MMFQKHZOZ7dypVCOX3aqJKFwTGlfndKs+4qfHEW7+hjc4hKcd3iCBEZCKK LUkEUa4j+dMHMjtSUgEPNN6wq7tzC0Ld5o5gdm2SwTVLhfnUDtwhZkkX7DlxUcrlUBw/ NWA1YMXSjGHweaCNU7euOEPo1Up5eSUcc3utHNOw9u7Cdv+o1+qWbNFrosp2csfe1tFk xJ/byqDpVY+4z2w/eAWDclJDTbpLHxGjY7hfq9FsfhHVZrz7mL9IvbgUBn6ooskTzu6P 8CoUfV24oCtuBA05h+5SLkAPp4FKkYxNhGNi70f0TdC/VBrSWmZeDI23w9OxkXkbFVww 0qrg== X-Gm-Message-State: ACrzQf03jVgyoz3uoRxI58UBsWfsO87I7GK2hdqzkD4NDrSxJdbvm0v2 jo4YQmHKYAy1qMR64vGg1/RW8uFQWUYsYQ== X-Google-Smtp-Source: AMsMyM5qE3BrXfNIFA7gA9MvJFMTdNmr3UcrNDV5ANZvqPvJaVECicWM+b22DnHBnN128U0R27FZOw== X-Received: by 2002:a17:902:d2c9:b0:186:f355:a42b with SMTP id n9-20020a170902d2c900b00186f355a42bmr62247149plc.58.1668036307337; Wed, 09 Nov 2022 15:25:07 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id y28-20020aa79e1c000000b0056e15b7138esm8798645pfq.157.2022.11.09.15.25.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 15:25:06 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Olivier Matz , Konstantin Ananyev , Anatoly Burakov Subject: [PATCH v3 10/14] examples: fix whitespace Date: Wed, 9 Nov 2022 15:24:47 -0800 Message-Id: <20221109232451.265059-11-stephen@networkplumber.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221109232451.265059-1-stephen@networkplumber.org> References: <20221109191445.140320-1-stephen@networkplumber.org> <20221109232451.265059-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 Add space after keywords. Signed-off-by: Stephen Hemminger --- examples/cmdline/parse_obj_list.c | 2 +- examples/ip_reassembly/main.c | 2 +- examples/multi_process/symmetric_mp/main.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/cmdline/parse_obj_list.c b/examples/cmdline/parse_obj_list.c index 959bcd14527e..759072d39620 100644 --- a/examples/cmdline/parse_obj_list.c +++ b/examples/cmdline/parse_obj_list.c @@ -42,7 +42,7 @@ parse_obj_list(cmdline_parse_token_hdr_t *tk, const char *buf, void *res, if (res && ressize < sizeof(struct object *)) return -1; - while(!cmdline_isendoftoken(buf[token_len])) + while (!cmdline_isendoftoken(buf[token_len])) token_len++; SLIST_FOREACH(o, tkd->list, next) { 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/multi_process/symmetric_mp/main.c b/examples/multi_process/symmetric_mp/main.c index 1ff85875dfdf..2f4441049253 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; @@ -470,8 +470,8 @@ main(int argc, char **argv) /* Primary instance initialized. 8< */ 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) + for (i = 0; i < num_ports; i++) { + 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.35.1