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 1418E43066; Mon, 14 Aug 2023 18:32:25 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D9919432B3; Mon, 14 Aug 2023 18:31:45 +0200 (CEST) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mails.dpdk.org (Postfix) with ESMTP id 20697432B8 for ; Mon, 14 Aug 2023 18:31:43 +0200 (CEST) Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1bc83a96067so27330375ad.0 for ; Mon, 14 Aug 2023 09:31:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1692030702; x=1692635502; 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=cXiZn8u9cebhXEgLucvXyQz1KDgBC05ZySJTpwfrLZ4=; b=wb2KVsu0KzZuDupA404y3rNKp9aHteH/SDN6DlrsLdwukJoeC4NDqWEtAbvfEQdCXe 39eDXuErGjUv58+tvc06tq8eFjISGGTSwRsht9YDbGx+KWVUfMHTtLMjfCdr57ZTpzDt Tt+cA7njS3Q+UUwBL+6HWz2umDozWvytGY4yFsQ0t1NBsM3tm0j4dFsqBivwPUD+Xv86 UfpxPXq4zVEDI8gKT0rGiPZ9bvPYWhOeTHlCgqGE4PDShf/BrLS6wMzjz301Mtxl15Mz vwyEOAd/scx0rCEr3PnVsAVlQk5cyoyXMCKGfUQNxBzfe9x1jxF3nDbG5sSzW4/KCWeY Uu5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692030702; x=1692635502; 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=cXiZn8u9cebhXEgLucvXyQz1KDgBC05ZySJTpwfrLZ4=; b=QfP6sMY7qFxttHoRgveWOeOE6abaSlw2hkS5Wm+9VzcspALwmSPrn7MOOGzcVICya3 8f9iId0s3cPhFsgeVdwTEmgKoq8DJv3wSMHcfrNfy1VdzsRbbYCNGatoOWVjvdAetnyJ F6/9CwUp/JxX68TtZF+UizX5MP5cqQVJvHBRbtRuN+E94dqL8EsAxwneNP9TwMd9u0gC KMwW4tt7V1n0nrN2yS2wvcyL+CGBXPi1TwemoITOOF7GnVqi4d9k3jqdQJkQ2AN9uNHx SxMc21Gfr3FmehNB2F0UZ188xYbjzLXNjVP5zC5kiDwelyu9DprYdxPjVrm6j0E1snp3 YUpQ== X-Gm-Message-State: AOJu0YwePdX159f34RgCdNuPFUwpyKlQU3IegbTfya3AGy9/9ndA47oZ iBsMzugGVyJWTFq0nppbrt+QSPuAKKHOiZTjcYcr+rZlrPs= X-Google-Smtp-Source: AGHT+IFRXg9Ua6edUZzcNiAhBW8QqFm9xN1YLCcSnR3vT6lFmS0BeAwOT5LnBEfXhlgqNzNyGoR3rg== X-Received: by 2002:a17:902:f803:b0:1bd:ecb4:5a2d with SMTP id ix3-20020a170902f80300b001bdecb45a2dmr1555092plb.42.1692030702092; Mon, 14 Aug 2023 09:31:42 -0700 (PDT) Received: from hermes.local (204-195-127-207.wavecable.com. [204.195.127.207]) by smtp.gmail.com with ESMTPSA id t10-20020a170902bc4a00b001bdd51748f8sm3892743plz.271.2023.08.14.09.31.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 09:31:41 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Anatoly Burakov , David Hunt , Alan Carew , Pablo de Lara Subject: [PATCH v8 6/6] power: use a dynamic logtype for guest channel Date: Mon, 14 Aug 2023 09:31:25 -0700 Message-Id: <20230814163125.63033-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230814163125.63033-1-stephen@networkplumber.org> References: <20230208044825.1682620-1-stephen@networkplumber.org> <20230814163125.63033-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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org DPDK libraries should not be reusing RTE_LOGTYPE_USER1 in lieu of doing proper logtype registration. Fixes: cd0d5547e873 ("power: vm communication channels in guest") Signed-off-by: Stephen Hemminger --- lib/power/guest_channel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/power/guest_channel.c b/lib/power/guest_channel.c index 7b2ae0b6506f..cc05347425da 100644 --- a/lib/power/guest_channel.c +++ b/lib/power/guest_channel.c @@ -17,7 +17,8 @@ #include "guest_channel.h" -#define RTE_LOGTYPE_GUEST_CHANNEL RTE_LOGTYPE_USER1 +RTE_LOG_REGISTER_SUFFIX(guest_channel_logtype, guest_channel, INFO); +#define RTE_LOGTYPE_GUEST_CHANNEL guest_channel_logtype /* Timeout for incoming message in milliseconds. */ #define TIMEOUT 10 -- 2.39.2