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 2E7D5A0093; Thu, 10 Nov 2022 00:25:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B555540A7D; Thu, 10 Nov 2022 00:24:57 +0100 (CET) Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by mails.dpdk.org (Postfix) with ESMTP id B672B400D4 for ; Thu, 10 Nov 2022 00:24:56 +0100 (CET) Received: by mail-pg1-f171.google.com with SMTP id 78so45776pgb.13 for ; Wed, 09 Nov 2022 15:24:56 -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=Va/5ciuzhoW7glab6jfjtSvcRjkE/+oyvtZCp4BGtCA=; b=ezN5MWTyTyxSaJSExQvVW/ZsUGAXkELiJtFHpbLS7LEHiyoeHIi5SFq2Pmq0RHtxty aus9Sg+Rjg+ZQPXzCoK2KVlDlJAJgUU/eVVaoGVN0sRi1zhWcetVFx4fPd5AMkwMfpYY fNiDyhGZFiegu7xsYIeHvK+cxtaLQXBY8rXq9S0la3/bcR/VgSiUJOxThqPy5Xypjhqe AmX9jpt3jxRF8fztDSHaFGGNzonjRHGFmmRz3puc28oZvULCfEwLSMzXgLVx9B98SmR6 rIBdXQXFcMj9ucMyj6f57O/zbxjZpbWldNwrcECjBPJMPcF+t5zcbE9xst7mNLin58Nd /kjw== 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=Va/5ciuzhoW7glab6jfjtSvcRjkE/+oyvtZCp4BGtCA=; b=pCUKD4vBamKN1JqIwGPMevf2ueaRhD+lGjT48UJ3Tf3APZGr3IXwxpMyT9f1SQFMsq yI37itc0/4JJ1RfrRuupJKapnQGtAjywvj8TSOd6w2SMPkq2VLzjY1Wur7mgzlAu4DKn uKiHP+yedZ59QHd3Djiu38t7l2ZML945S7u3D+YSx4G4TxRngMTFY63znA3ciPfzUsXm kUaesSHjxTdNyqX6oLMaiMjxmkiaqaFRU0z1uaZwPMqCavxdmEQsqD/ktPQ6YXxX5fUa tqu8oGTk5QkUDseNDxuDCJ5G3t64E1ReZhnHb2hq7MnKOrHIwlNoD8sJ7G+q8jEGzX6E Cuwg== X-Gm-Message-State: ACrzQf2ZXXol9biRHj3XElMuY29Ufkt64j2HLwFzM6cgANaeNkMBVuAr f1l1IHece935xRi6rDTONjMWWHzMoebZvA== X-Google-Smtp-Source: AMsMyM4Y1verJQGqf9oUq1GlVLqVGpLBurXTY1rMZ8WvSJCc9qkdZBc86vseEXq7N4KWA1BI/NMadA== X-Received: by 2002:a63:dc45:0:b0:43c:b43f:5228 with SMTP id f5-20020a63dc45000000b0043cb43f5228mr1367299pgj.58.1668036295643; Wed, 09 Nov 2022 15:24:55 -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.24.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 15:24:54 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Harman Kalra Subject: [PATCH v3 01/14] eal: fix whitespace Date: Wed, 9 Nov 2022 15:24:38 -0800 Message-Id: <20221109232451.265059-2-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 --- lib/eal/include/generic/rte_cycles.h | 4 ++-- lib/eal/linux/eal_hugepage_info.c | 6 +++--- lib/eal/linux/eal_interrupts.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/eal/include/generic/rte_cycles.h b/lib/eal/include/generic/rte_cycles.h index f4fdca416570..e05b56e2cac6 100644 --- a/lib/eal/include/generic/rte_cycles.h +++ b/lib/eal/include/generic/rte_cycles.h @@ -94,7 +94,7 @@ static inline uint64_t rte_get_timer_cycles(void) { #ifdef RTE_LIBEAL_USE_HPET - switch(eal_timer_source) { + switch (eal_timer_source) { case EAL_TIMER_TSC: #endif return rte_get_tsc_cycles(); @@ -116,7 +116,7 @@ static inline uint64_t rte_get_timer_hz(void) { #ifdef RTE_LIBEAL_USE_HPET - switch(eal_timer_source) { + switch (eal_timer_source) { case EAL_TIMER_TSC: #endif return rte_get_tsc_hz(); diff --git a/lib/eal/linux/eal_hugepage_info.c b/lib/eal/linux/eal_hugepage_info.c index a1b6cb31ff1a..b6d751a2ee97 100644 --- a/lib/eal/linux/eal_hugepage_info.c +++ b/lib/eal/linux/eal_hugepage_info.c @@ -180,8 +180,8 @@ get_default_hp_size(void) FILE *fd = fopen(proc_meminfo, "r"); if (fd == NULL) rte_panic("Cannot open %s\n", proc_meminfo); - while(fgets(buffer, sizeof(buffer), fd)){ - if (strncmp(buffer, str_hugepagesz, hugepagesz_len) == 0){ + while (fgets(buffer, sizeof(buffer), fd)) { + if (strncmp(buffer, str_hugepagesz, hugepagesz_len) == 0) { size = rte_str_to_size(&buffer[hugepagesz_len]); break; } @@ -231,7 +231,7 @@ get_hugepage_dir(uint64_t hugepage_sz, char *hugedir, int len) if (default_size == 0) default_size = get_default_hp_size(); - while (fgets(buf, sizeof(buf), fd)){ + while (fgets(buf, sizeof(buf), fd)) { const char *pagesz_str; if (rte_strsplit(buf, sizeof(buf), splitstr, _FIELDNAME_MAX, diff --git a/lib/eal/linux/eal_interrupts.c b/lib/eal/linux/eal_interrupts.c index d52ec8eb4cd7..3be1b090be9e 100644 --- a/lib/eal/linux/eal_interrupts.c +++ b/lib/eal/linux/eal_interrupts.c @@ -1073,7 +1073,7 @@ eal_intr_handle_interrupts(int pfd, unsigned totalfds) struct epoll_event events[totalfds]; int nfds = 0; - for(;;) { + for (;;) { nfds = epoll_wait(pfd, events, totalfds, EAL_INTR_EPOLL_WAIT_FOREVER); /* epoll_wait fail */ -- 2.35.1