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 3921FA0566; Mon, 8 Mar 2021 23:24:10 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1B43522A3A1; Mon, 8 Mar 2021 23:24:10 +0100 (CET) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by mails.dpdk.org (Postfix) with ESMTP id 2224022A369 for ; Mon, 8 Mar 2021 23:24:09 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id A5E675C0115; Mon, 8 Mar 2021 17:24:06 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 08 Mar 2021 17:24:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm3; bh=GZCKMYrZ4t4yY07h52v7A24N76 dRUt3YBbVwk2hTlgg=; b=eyN0P2QSuaUaqOmPuqB28gpzvuSz297neeyw5hSQlX ywozlVXwtemXBFgnVGtwTz4rXZaTPU2yktpXQMM+7JNWp5iTzId/dR+uy1Cyzz63 SNgSSR9qGzI7F69CNvvtz5JvVc3ulAkiBEB5NjqHIUw1sdtW5k0DItGxTpRCA9Mw iD6/me2R/z2/HUg7KnH35XB3vpJyjHO0HumFL2JMvo75Jgfjzjfrghqha3Kj0iPZ l7+sH5TqDDfKfwKJmNSO3bgWwvXm5TPgPvlAiApfhC5zDJ0kV/1X1pFvAb8ZnYrD IezEpLQ8OxY7jiVZtmXH8wHRvyr9pi/r/lVnKLnF/KTg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=GZCKMYrZ4t4yY07h5 2v7A24N76dRUt3YBbVwk2hTlgg=; b=IpjuVpDF3TDy31CNZs+D5Rf+YN8sw6MDD 45cOQneZOcyEbMyp0Ck9KKgKFp25i7h9Xgbde/0X1Wf0505GWlo5fV4o3KWdAJBP g44OfKY3bZTQYes7fzE9GolR8AnmSAdGLE4C2QG8F6K8YeFjBCaGXmtBzzN8XoCf u6TE8uh2gIlza+3IQLYbbpBdKKU4ro7eQ2AoFR+TAl07rH26JoZ6pul3A8FyMzHe 0N4WhGppqHVWRD2Ywrt+IQXGDBDbZ+bsixmvZa/DaLabGt0MOuvS2K2FMJAb7mck l5xdDF8vKHezlm3KUKXX39Sisx3T7NrFU/N8W7D4o45BGje9eZCgw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddugedgledvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgrshcu ofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecuggftrf grthhtvghrnhepvdelvdduhedvudduveeuvdevheegudelgeeigfejheduhedttdegudff jeeihffgnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhn rdhnvght X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 853571080054; Mon, 8 Mar 2021 17:24:05 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: Bruce Richardson Date: Mon, 8 Mar 2021 23:23:38 +0100 Message-Id: <20210308222339.819494-1-thomas@monjalon.net> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] eal: prefix telemetry initialization message 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 Sender: "dev" If the telemetry library initialization has some issue, the error message is returned in a string (to avoid circular dependency with EAL log system). In order to make clear where the message comes from, a prefix is added. Before: EAL: message After: EAL: telemetry: message Signed-off-by: Thomas Monjalon --- lib/librte_eal/freebsd/eal.c | 2 +- lib/librte_eal/linux/eal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/freebsd/eal.c b/lib/librte_eal/freebsd/eal.c index e2cdad5283..afbbb1c523 100644 --- a/lib/librte_eal/freebsd/eal.c +++ b/lib/librte_eal/freebsd/eal.c @@ -949,7 +949,7 @@ rte_eal_init(int argc, char **argv) return -1; } if (error_str != NULL) - RTE_LOG(NOTICE, EAL, "%s\n", error_str); + RTE_LOG(NOTICE, EAL, "telemetry: %s\n", error_str); } eal_mcfg_complete(); diff --git a/lib/librte_eal/linux/eal.c b/lib/librte_eal/linux/eal.c index 6c34ac8903..bc966150a5 100644 --- a/lib/librte_eal/linux/eal.c +++ b/lib/librte_eal/linux/eal.c @@ -1322,7 +1322,7 @@ rte_eal_init(int argc, char **argv) return -1; } if (error_str != NULL) - RTE_LOG(NOTICE, EAL, "%s\n", error_str); + RTE_LOG(NOTICE, EAL, "telemetry: %s\n", error_str); } eal_mcfg_complete(); -- 2.30.1