Message ID | 20230329234049.11071-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 E7E4542868; Thu, 30 Mar 2023 01:41:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 49CA842D36; Thu, 30 Mar 2023 01:41:08 +0200 (CEST) Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mails.dpdk.org (Postfix) with ESMTP id 109F342D13 for <dev@dpdk.org>; Thu, 30 Mar 2023 01:41:05 +0200 (CEST) Received: by mail-pj1-f47.google.com with SMTP id mp3-20020a17090b190300b0023fcc8ce113so20243386pjb.4 for <dev@dpdk.org>; Wed, 29 Mar 2023 16:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; t=1680133264; 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=fyrJcbePnQ6zXNEhR66EsO6cYbBaUaucvyZn24qcaWg=; b=ZJWWt+ZxpXEEuTzykZuV5zsC34UQf5EBX8tIyx7/Oz+WGbEdIMrNbBni90fWtYeGq8 sgsY0K4nztjfxpVBg2bqGi5xbEvMtTM8TiLX+G4twBDXU49cL4XDDiUxpygGRQvH75wc h1DfgQIccV/ASfo9l7iXudiBSslD5kvzOBzzv+/vDZO5dvvUnNt1qLfNJ077tzjIuDcd VMM+QDailU61YE+DTq5UEF3YooZGPq+w9eZtOXZU63zPny5JL1Q8HbVHiEEHQeHjFed8 YpJj41dUQDlWpCLJ0PNB/jTolJH7cKoTkSW9toh6OVu1vtPfUp5FUxVkO28QXrxqftno eGVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680133264; 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=fyrJcbePnQ6zXNEhR66EsO6cYbBaUaucvyZn24qcaWg=; b=I3k5h7uuHfuz/hINL8XJOgck7LSMhK/iMwq6yoEgrxVyT8/S54t6003DcL5x2JGICt yX8nOIw50+8FIzpaSwVFQ3PKqUo57fjBahRKzCln9jB9g3h6ghvULLLb1jkAuWH5GvwK k/PtpguGSJ49SP03NCitSy8PrRJtDJoVdY8ADKL6axeictwI8Mr16yv4I6v7l7N3U8UR Ienj4CewxHlctV+JYfINoTTIhqXAjHxuSmOMXvapXfmjtTi1XzM7wvcRbFdX65f+BFIc THAeX2LQ7U7W09fkVKfsl7yjiFbjaWZS6lgpSyLwaTw+jJJGf3ACVsVq0A1VQSWbJvDC HpPw== X-Gm-Message-State: AAQBX9ea4efBnSkmSBA9o1rvE/jmUKrHBKa2+RQdbTRxb8Ih9I4+ez1M oLuw8JDA9AWLCHa1ZupOLdCCiQJT4Zvh3g6jBbyGzQ== X-Google-Smtp-Source: AKy350aFzKEJOzZcUVcYSw0zhiUeWgjPeHXowqBSuRVxyPopDo6QS7eAK93wdTkqy/cXMcBhFbw5XQ== X-Received: by 2002:a17:902:fa10:b0:19f:2b42:5d01 with SMTP id la16-20020a170902fa1000b0019f2b425d01mr18131031plb.9.1680133263980; Wed, 29 Mar 2023 16:41:03 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id f10-20020a17090274ca00b0019c2b1c4db1sm23360095plt.239.2023.03.29.16.41.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 16:41:02 -0700 (PDT) From: Stephen Hemminger <stephen@networkplumber.org> To: dev@dpdk.org Cc: Stephen Hemminger <stephen@networkplumber.org>, David Hunt <david.hunt@intel.com> Subject: [PATCH v12 07/22] examples/power: replace use of RTE_LOGTYPE_POWER Date: Wed, 29 Mar 2023 16:40:34 -0700 Message-Id: <20230329234049.11071-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230329234049.11071-1-stephen@networkplumber.org> References: <20230329234049.11071-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 |
Covert static log types in libraries to dynamic
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Stephen Hemminger
March 29, 2023, 11:40 p.m. UTC
Don't use static logtype in sample application. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: David Hunt <david.hunt@intel.com> --- 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); /*