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 F3F21A034C; Wed, 9 Nov 2022 20:14:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6AE2440687; Wed, 9 Nov 2022 20:14:54 +0100 (CET) Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) by mails.dpdk.org (Postfix) with ESMTP id 22CDA40150 for ; Wed, 9 Nov 2022 20:14:53 +0100 (CET) Received: by mail-pg1-f176.google.com with SMTP id v3so17039810pgh.4 for ; Wed, 09 Nov 2022 11:14:53 -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=yAXi9t9qXnDdLCvHb+CVQXhE0+9sAIZYsFecpV6ZpWc=; b=WLMqRWCxV1WhmkDcU4OOkDw/v6hkgF9+ANWWwQRlcoUpUKGSZmqwO58eVj0BkGEMGg axM1NXND5Q44J+pNcVTgwdWKLxxnmvsNZr9gRi9zH4aPvnvmlO9Vy5Acn6mUxkizvkOz HwU/32D9//dzBh9J6h7XccII8DRBcG0dUDgLONxmQUw1sXg4sKn7h1ZwI92DSp12YwW2 vVjOuijWmj6qGo/g+xw9y6DvX4H7UatfHUzTD3Zjd03B1BO5gobr2gGmYa92iJmz9R02 P0aF3yQgsX1rDUHJORvMFUVZ6h+6I9tlXwPJxKfClW8m6f3a/wR3WsTLpJVpilKEz7DK GRuA== 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=yAXi9t9qXnDdLCvHb+CVQXhE0+9sAIZYsFecpV6ZpWc=; b=dY38Z8Bt8r7Knr/6X28Hw3Rhkf/kI7PAXZYRDbl2rxQEdzzGGkeAMXu6T6s+U6dYX2 tJPK6M97xFkZ50QUeRd7FejhUvavActHEiupMCGKy6E2PMYcl4f6dITUn98BM8KKVpC5 u8UFc6IGwPdPG+Rw3B/p7+vUGZLUtNyu/uKirZk1DbA0Q32HwIfh1Ub69wBI4dbtV649 ccagQabDvSAzak+Q8I//YudrAket8gHt4aFFLS2u9fvEX+CWV7vPVhnNE+yZdeGUjGf+ IPyDm7FEC8Ir7k/7uTHguVZ+b2oOnBq036spuihSlc+BiId+2VJWxUGrh93HVTiZqmtn gJtw== X-Gm-Message-State: ACrzQf36CMp4qCGPNC2p3smSVkbNGdAi23qdp0A334m0fFpKJKMc2pFB Ny9mcv/maJ1K9SWrwNmAI9sImnBL7G7uug== X-Google-Smtp-Source: AMsMyM6tXIBqgYJN1Onk09AKEpN88EuFevoECnrbYgohH4sT96crZcDsw+b7zCDibpwS/Sr4nGrFNA== X-Received: by 2002:a05:6a00:d5f:b0:56e:9868:52b6 with SMTP id n31-20020a056a000d5f00b0056e986852b6mr28806647pfv.4.1668021291941; Wed, 09 Nov 2022 11:14:51 -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.14.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 11:14:51 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Harman Kalra Subject: [PATCH 01/14] eal: fix whitespace Date: Wed, 9 Nov 2022 11:14:32 -0800 Message-Id: <20221109191445.140320-2-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 --- lib/eal/linux/eal_hugepage_info.c | 6 +++--- lib/eal/linux/eal_interrupts.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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