From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f172.google.com (mail-we0-f172.google.com [74.125.82.172]) by dpdk.org (Postfix) with ESMTP id 80C69B3B9 for ; Mon, 22 Sep 2014 10:32:14 +0200 (CEST) Received: by mail-we0-f172.google.com with SMTP id p10so2064024wes.3 for ; Mon, 22 Sep 2014 01:38:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vCmrn2e6+y9HcMT0CsGVSvHKb2wjS3hAuslBv5UsbYk=; b=ibTwOc1J8mlsaIjdbLy5+fDCmiydUTxNzkWxr/CcOK9UggCVd7TNkm0RubssCHEU/c 5A81s3AS1Q1CubloY8lQZ3UosDExsZh8is/pKalyjhOO/m9ppTI/LlniQzkxokgtQKQ7 l6mRlyCDCkA3ECEZsdM6PL5Hy7eDT09o7xu0ohWWh0h402jWCY4DB6WlYmiiR+oJ2kqJ LJTkqKXChFkItbPUUmi2jTUDJ0dPHDir9VwIvhmSVNMLCtvoYdHbWTlo2W7GTTbvT22h kqT8wbMnErBlj34Ox27TXydE81djUU7TDyZ4y6Xtiw8a1bvpCm4HyErSzpjDLoaLYeWx yVxA== X-Gm-Message-State: ALoCoQm3A2bGrEbhp73mJhkhqbp0T2n0Aum8egerJv3sFA93/d99kC9Sz+FrOaLgLZUaHHZdsJvF X-Received: by 10.194.176.71 with SMTP id cg7mr769035wjc.132.1411375097591; Mon, 22 Sep 2014 01:38:17 -0700 (PDT) Received: from alcyon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id js2sm11522334wjc.9.2014.09.22.01.38.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Sep 2014 01:38:16 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Mon, 22 Sep 2014 10:38:01 +0200 Message-Id: <1411375081-27986-8-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1411375081-27986-1-git-send-email-david.marchand@6wind.com> References: <1411375081-27986-1-git-send-email-david.marchand@6wind.com> Subject: [dpdk-dev] [PATCH 7/7] eal: indent files X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 08:32:14 -0000 Indent files modified in previous commit. Signed-off-by: David Marchand --- lib/librte_eal/common/eal_common_options.c | 48 +++++++++++------------ lib/librte_eal/linuxapp/eal/eal.c | 58 ++++++++++++++-------------- 2 files changed, 53 insertions(+), 53 deletions(-) diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c index 4009f02..7a5d55e 100644 --- a/lib/librte_eal/common/eal_common_options.c +++ b/lib/librte_eal/common/eal_common_options.c @@ -297,56 +297,56 @@ eal_parse_common_option(int opt, const char *optarg, /* long options */ case OPT_NO_HUGE_NUM: - conf->no_hugetlbfs = 1; + conf->no_hugetlbfs = 1; break; case OPT_NO_PCI_NUM: - conf->no_pci = 1; + conf->no_pci = 1; break; case OPT_NO_HPET_NUM: - conf->no_hpet = 1; + conf->no_hpet = 1; break; case OPT_VMWARE_TSC_MAP_NUM: - conf->vmware_tsc_map = 1; + conf->vmware_tsc_map = 1; break; case OPT_NO_SHCONF_NUM: - conf->no_shconf = 1; + conf->no_shconf = 1; break; case OPT_PROC_TYPE_NUM: - conf->process_type = eal_parse_proc_type(optarg); + conf->process_type = eal_parse_proc_type(optarg); break; case OPT_VDEV_NUM: - if (rte_eal_devargs_add(RTE_DEVTYPE_VIRTUAL, - optarg) < 0) { - return -1; - } + if (rte_eal_devargs_add(RTE_DEVTYPE_VIRTUAL, + optarg) < 0) { + return -1; + } break; case OPT_SYSLOG_NUM: - if (eal_parse_syslog(optarg, conf) < 0) { - RTE_LOG(ERR, EAL, "invalid parameters for --" - OPT_SYSLOG "\n"); - return -1; - } + if (eal_parse_syslog(optarg, conf) < 0) { + RTE_LOG(ERR, EAL, "invalid parameters for --" + OPT_SYSLOG "\n"); + return -1; + } break; case OPT_LOG_LEVEL_NUM: { - uint32_t log; + uint32_t log; - if (eal_parse_log_level(optarg, &log) < 0) { - RTE_LOG(ERR, EAL, - "invalid parameters for --" - OPT_LOG_LEVEL "\n"); - return -1; - } - conf->log_level = log; - break; + if (eal_parse_log_level(optarg, &log) < 0) { + RTE_LOG(ERR, EAL, + "invalid parameters for --" + OPT_LOG_LEVEL "\n"); + return -1; } + conf->log_level = log; + break; + } /* don't know what to do, leave this to caller */ default: diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index 1d468dd..05804dc 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -584,53 +584,53 @@ eal_parse_args(int argc, char **argv) /* long options */ case OPT_XEN_DOM0_NUM: - #ifdef RTE_LIBRTE_XEN_DOM0 - internal_config.xen_dom0_support = 1; - #else - RTE_LOG(ERR, EAL, "Can't support DPDK app " - "running on Dom0, please configure" - " RTE_LIBRTE_XEN_DOM0=y\n"); - return -1; - #endif +#ifdef RTE_LIBRTE_XEN_DOM0 + internal_config.xen_dom0_support = 1; +#else + RTE_LOG(ERR, EAL, "Can't support DPDK app " + "running on Dom0, please configure" + " RTE_LIBRTE_XEN_DOM0=y\n"); + return -1; +#endif break; case OPT_HUGE_DIR_NUM: - internal_config.hugepage_dir = optarg; + internal_config.hugepage_dir = optarg; break; case OPT_FILE_PREFIX_NUM: - internal_config.hugefile_prefix = optarg; + internal_config.hugefile_prefix = optarg; break; case OPT_SOCKET_MEM_NUM: - if (eal_parse_socket_mem(optarg) < 0) { - RTE_LOG(ERR, EAL, "invalid parameters for --" - OPT_SOCKET_MEM "\n"); - eal_usage(prgname); - return -1; - } + if (eal_parse_socket_mem(optarg) < 0) { + RTE_LOG(ERR, EAL, "invalid parameters for --" + OPT_SOCKET_MEM "\n"); + eal_usage(prgname); + return -1; + } break; case OPT_BASE_VIRTADDR_NUM: - if (eal_parse_base_virtaddr(optarg) < 0) { - RTE_LOG(ERR, EAL, "invalid parameter for --" - OPT_BASE_VIRTADDR "\n"); - eal_usage(prgname); - return -1; - } + if (eal_parse_base_virtaddr(optarg) < 0) { + RTE_LOG(ERR, EAL, "invalid parameter for --" + OPT_BASE_VIRTADDR "\n"); + eal_usage(prgname); + return -1; + } break; case OPT_VFIO_INTR_NUM: - if (eal_parse_vfio_intr(optarg) < 0) { - RTE_LOG(ERR, EAL, "invalid parameters for --" - OPT_VFIO_INTR "\n"); - eal_usage(prgname); - return -1; - } + if (eal_parse_vfio_intr(optarg) < 0) { + RTE_LOG(ERR, EAL, "invalid parameters for --" + OPT_VFIO_INTR "\n"); + eal_usage(prgname); + return -1; + } break; case OPT_CREATE_UIO_DEV_NUM: - internal_config.create_uio_dev = 1; + internal_config.create_uio_dev = 1; break; default: -- 1.7.10.4