Message ID | 20230221190208.514276-8-stephen@networkplumber.org (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Thomas Monjalon |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B0DEC41D32; Tue, 21 Feb 2023 20:03:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7247442D8A; Tue, 21 Feb 2023 20:02:34 +0100 (CET) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id 7B51342D1A for <dev@dpdk.org>; Tue, 21 Feb 2023 20:02:23 +0100 (CET) Received: by mail-pl1-f170.google.com with SMTP id u14so2225961ple.7 for <dev@dpdk.org>; Tue, 21 Feb 2023 11:02:23 -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=/qg6n21gkqP1/KVHJbW9jEJA/i9qgeMJfcXqgMCDxHo=; b=KeqSRl+h1ARilIXNF63PaK3RF7LG18Vrzp5w/tfEGs6TemO9iJjZfXnF3f08ex5lIT hntxGw6iCdnXvWrfPiSCoe0fj1SeIVZiyC1EUNplE4FG31MUboyQheUV2VnfCGVYn4Tc jANgsva2InsbrXfga0mlgSDZRKg8/5TirE7OnM4FpPHn+WS1Im7QA7sr3aZurGMgwKYy lbhda47QOAmtVannYBAvqwEj92PAUJx8K8BWMDRg9DThFhUrvuIeyQUFVZ0Y/AQE36UY JMe6wxqsSq4CdsZP7o9NgqRft3PkL75X9WFmAPj7WFxoey7VipC1EP5e/LpDyUdXNLnN YxsA== 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=/qg6n21gkqP1/KVHJbW9jEJA/i9qgeMJfcXqgMCDxHo=; b=C7Q4C4g1tfhYVsXstDy2KJ54gBNcutPQHxg4vP2a7QHELLt0l2YhU0ZUXv4MVwVPKF /koM1pw93Ig3NXUCqIXMgQXIf+h3EOlXPXXKFacgrKePP5CjY2ZHnDmn69pIal6h/Dz8 eygNxi3fanaePXdwYg6m2L3fuR5eqGCILx8DXVJrhAr0K82ESvRQGYxCRnhxByMFC6BY R4860Ju/HevPsyof/FCpEmILTt8DZOUDyDaZC8RGW2uU2xrfHK6eqLYl8CEtEqHIGRFN NbN3MxqAsgpBt32rJRueraj9CQhZ4IsmB9LXUyM3vL6As36gGSzf6sV3RM6sQFT8w3sl Xv5A== X-Gm-Message-State: AO0yUKUS3lXOurOOhfzbo0bmRuc/9dPOk1NrmMdNTpc/JQE45VTyzQM2 L/smqFeGWyk+whl8k+aosyMKj0IFgly2fr4L9AE= X-Google-Smtp-Source: AK7set9E9Z2f+n7aHsZ8rvDfYaCBP+25dDH6aeb84IuS9C2AkHRCzIUQQC2o5UN0F2lMCJbrN9SD5A== X-Received: by 2002:a05:6a21:78a4:b0:c7:40f8:73d3 with SMTP id bf36-20020a056a2178a400b000c740f873d3mr6547029pzc.33.1677006142458; Tue, 21 Feb 2023 11:02:22 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id jc4-20020a17090325c400b001991e59fde6sm10213018plb.216.2023.02.21.11.02.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 11:02:22 -0800 (PST) From: Stephen Hemminger <stephen@networkplumber.org> To: dev@dpdk.org Cc: Stephen Hemminger <stephen@networkplumber.org>, David Hunt <david.hunt@intel.com> Subject: [PATCH v9 07/22] examples/power: replace use of RTE_LOGTYPE_POWER Date: Tue, 21 Feb 2023 11:01:53 -0800 Message-Id: <20230221190208.514276-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230221190208.514276-1-stephen@networkplumber.org> References: <20230207204151.1503491-1-stephen@networkplumber.org> <20230221190208.514276-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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
Convert static logtypes in libraries
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Stephen Hemminger
Feb. 21, 2023, 7:01 p.m. UTC
Don't use static logtype in sample application.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
examples/distributor/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 21/02/2023 19:01, Stephen Hemminger wrote: > Don't use static logtype in sample application. > > Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> > --- > examples/distributor/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/examples/distributor/main.c b/examples/distributor/main.c > index 21304d661873..542f76cf9664 100644 > --- a/examples/distributor/main.c > +++ b/examples/distributor/main.c > @@ -679,7 +679,7 @@ init_power_library(void) > /* init power management library */ > ret = rte_power_init(lcore_id); > if (ret) { > - RTE_LOG(ERR, POWER, > + fprintf(stderr, > "Library initialization failed on core %u\n", > lcore_id); > /* Acked-by: David Hunt <david.hunt@intel.com>
diff --git a/examples/distributor/main.c b/examples/distributor/main.c index 21304d661873..542f76cf9664 100644 --- a/examples/distributor/main.c +++ b/examples/distributor/main.c @@ -679,7 +679,7 @@ init_power_library(void) /* init power management library */ ret = rte_power_init(lcore_id); if (ret) { - RTE_LOG(ERR, POWER, + fprintf(stderr, "Library initialization failed on core %u\n", lcore_id); /*