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 41198A034C; Wed, 9 Nov 2022 20:15:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8D7CA42D4A; Wed, 9 Nov 2022 20:15:12 +0100 (CET) Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by mails.dpdk.org (Postfix) with ESMTP id 588DB42D44 for ; Wed, 9 Nov 2022 20:15:11 +0100 (CET) Received: by mail-pg1-f178.google.com with SMTP id q71so17020851pgq.8 for ; Wed, 09 Nov 2022 11:15:11 -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=GYEQqcVERMmtjH1QTcIBXgv9M6JLSdnwjNpugNsoKuY=; b=01hq8ORISIdQTfhkQn2m8FoS3jwA0LqbI3dvjaFk8Q08ALv3Cr+3OexXcknCC2z6E2 y78R2WL5iePf/8getENljsqfxarvJ2mxGZrujQbMgo1E3A7rHU2bDMd7G78HjC32TfbD fAgzBHs6REYVgJA4LJX2VpbbR7Lte/6e9aMr4lWzQR43d9w0gyXHRsBMPrAhRolB5XrG nrBSY0OIP4BV5oMV78jwqMNVFaLHhPgj9dTNdhBVVa4l+7rPu8Zobv/OTfp2RrPPp3ZB b2XGIVxjXhZ9tUBurZ6omZlKT3xYeDnMqP0xKc7hsm66j6rNmr7BvbUM8+8WrGJgF292 FpGg== 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=GYEQqcVERMmtjH1QTcIBXgv9M6JLSdnwjNpugNsoKuY=; b=XilrEp+csFsevlCfRB4bBItJBPCy/AHWC+99hybT4AFhIkG/Jemp6nf1IGCS5jsizF AmR+wJa14OrRZ28ZLfcGA0cUhWPzrOFdqCpL2JWjIxFg3qNcHUUqfmGY88YuWVpznn5R aM9QmV65JNVwC8uTVIpNa5zVyQOSrCjAenR98gctdW853RnjCefMlxjZu08J4MxgNEXK 5Kvx27dirp/coaIQEDYbv1gBYFoHBokt/fTmZl4WKLor6l4Cuel+ThQ9MH6nJg8N51/3 5cT/d7V5BqzhmJ/rnredKdMRDTiT8o8aObX5Oa0nHZPenNxiKZ10kTk0GseJlYXM+DyC CB7Q== X-Gm-Message-State: ACrzQf3Gf1rQc+VngX3Buv+lsbs2jNtC1hC+v39PZmcRfwPu8TxXKMhb tSUdmiN5NHcbD70ej/PLAvPHTXMzGL8NIg== X-Google-Smtp-Source: AMsMyM4ftdTbGxGNMTc4/YwHfwQV1QQOjClK8tJJur9OqMWvx2Heip3PB/VxSvxp+XEY7ot8i+1cgw== X-Received: by 2002:a05:6a02:10a:b0:461:26b8:1c95 with SMTP id bg10-20020a056a02010a00b0046126b81c95mr50489335pgb.503.1668021310180; Wed, 09 Nov 2022 11:15:10 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id gn16-20020a17090ac79000b002130c269b6fsm1586698pjb.1.2022.11.09.11.15.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 11:15:09 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Olivier Matz , Konstantin Ananyev , Anatoly Burakov Subject: [PATCH 10/14] examples: fix whitespace Date: Wed, 9 Nov 2022 11:14:41 -0800 Message-Id: <20221109191445.140320-11-stephen@networkplumber.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221109191445.140320-1-stephen@networkplumber.org> References: <20221109191445.140320-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..9c5348bd36ed 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