From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by dpdk.org (Postfix) with ESMTP id CFE591BC73 for ; Thu, 20 Dec 2018 18:07:22 +0100 (CET) Received: by mail-wr1-f68.google.com with SMTP id x10so2520436wrs.8 for ; Thu, 20 Dec 2018 09:07:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=f1r0ohynzPVrWW+cR+Zsc/pmk7Xt1biUdlspZf8ZVa8=; b=P315Sk62NhNSN9u0AxOP7J6adcq/ka5OClbIfgjpg7ffDlLDoUYYwWEFUVI4il9X20 NuxTXfTFXpHpW+PMW/OABpQQbDLA5fSjfSBrorOaH1oQjyp/Zca9RfMxCeKspf5YsQbM RX1NDDkbyY9SitfzcaN4s3LkhfWwgJi+D8KFLyLbUfIvniweSIQIaOSwu2yYYuCvXeHq 6arWr5wVy22UprX99jkuTtJb8HKJw5XQ6hSBhAkzGe9g4GjRe1U4ZJk+i2f7CR3tnSrr XfliKIAJ1f1ZPjtEhkV/B0dNoy/QkTsTIG6+nz4kT8JpePqApsYVK3oaYaAG5X2+uJQJ pWzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=f1r0ohynzPVrWW+cR+Zsc/pmk7Xt1biUdlspZf8ZVa8=; b=HdB4K6tPvsuvOqCvs4FqBzHEtcPna8atnx/EgE1j2yg9fBqccNm5u619O+th1Rmq+8 OojoHHPNYSilnBQhAe6zkFJ5l3+Xa+W0+zbil8veQRrw4fZ4BstHxhd89XMemzHZjGHy rfSqB3GSHDDMjcdSaiNoI5SgqtJRRDZQQJILrDehenKae9TQ1EusCH//8d9Qj66VdJOf KWFOyvTOrmKWsZvcmskj/CRXLFbvQRR43ZWM/06LqQu1UcqtCVlRPX8t4KlfVc3mh1lj Ywm3QTVqpvCR53Z9ysANvKJ8f2N13+emwzBufg6L4tK7fFoZ0KDeFJ96gp8t/zcXuLvu BJNQ== X-Gm-Message-State: AA+aEWayVCvNbY+sBrjSEWgULZEHdRuTHQRCJBEXsJM3+zaog/XX7W11 IZ4JM09pe1eCF+Zeiwgm+x8+aj59tw4= X-Google-Smtp-Source: AFSGD/VQh/+EWJFF1DSKsSmiuCq/E4ohoqgBbH5EVf54zIDCu92yOZgC/FvfgYb5dIz5DtNFQYO4MA== X-Received: by 2002:a5d:4a0c:: with SMTP id m12mr23088136wrq.38.1545325642063; Thu, 20 Dec 2018 09:07:22 -0800 (PST) Received: from bidouze.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id n5sm11951688wrr.94.2018.12.20.09.07.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Dec 2018 09:07:21 -0800 (PST) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 20 Dec 2018 18:06:45 +0100 Message-Id: <64f85562258c23baf01c97a3904be7d85cace95f.1545325395.git.gaetan.rivet@6wind.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v1 6/8] option: fix log level of error in register X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2018 17:07:23 -0000 INFO is not correct when logging an error. Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/rte_option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/rte_option.c b/lib/librte_eal/common/rte_option.c index ae8a0e2ca..b2c93b220 100644 --- a/lib/librte_eal/common/rte_option.c +++ b/lib/librte_eal/common/rte_option.c @@ -56,7 +56,7 @@ rte_option_register(struct rte_option *opt) TAILQ_FOREACH(option, &rte_option_list, next) { if (strcmp(opt->name, option->name) == 0) { - RTE_LOG(INFO, EAL, "Option %s has already been registered.\n", + RTE_LOG(ERR, EAL, "Option %s has already been registered.\n", opt->name); return; } -- 2.19.1