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 E1304436D9; Wed, 13 Dec 2023 05:19:53 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DBDC542EC4; Wed, 13 Dec 2023 05:19:28 +0100 (CET) Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) by mails.dpdk.org (Postfix) with ESMTP id 2451042E99 for ; Wed, 13 Dec 2023 05:19:26 +0100 (CET) Received: by mail-ot1-f43.google.com with SMTP id 46e09a7af769-6d9d59d6676so4922238a34.1 for ; Tue, 12 Dec 2023 20:19:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702441165; x=1703045965; darn=dpdk.org; 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=AvB85rPUvBz4MZ8Zxa6Fij3ohWEASPQ1wSN/8pCI2bg=; b=Jm92gJnSS3tq0yOjbgpnjSIl4dG+BSzu2ZhBHkiL9p6911buU5Pgb6oWctAXn2xzep wvxHnkOFriPbOkhgY/ZIW0VLgZfaBiGTjnQU8yoOyA81FKfFFS9olsEPA7Z8LHBY+fUD UbNKLLbIdFZqH4D9HZL7iRRDHBk4CG/17lU81vk6RKE03UaWUIgt3ysYfe5mdCnwZXVd jhQPrD05SOosgL33gBQEqAK9v728eOII4yvNpAYMrVkx9AIPFG+X++2/ojQfUAMjrGMY rsFG5P2uXSG/maVPazmkLjpjAwQAre7Ho+p/7Vbpf8GJcUyotgz4XKY3RmFUiGS/lLzv 1ARQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702441165; x=1703045965; 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=AvB85rPUvBz4MZ8Zxa6Fij3ohWEASPQ1wSN/8pCI2bg=; b=Ng1k3IU4bhZ3BeTmqvO93CEEafJ6uu0xPhe/hYERg34xzlT/Tap5+Vx6AzAlT9axZC bU/Ae1Fln8GIEyxWmmS+ssExOUGkQeuh01CTA8fRgFiZKX81r5exouZk1RPOflvZNc3B D3QybCUi+BI0kdFg2osG9MmOy+X/1bbOG9GM5/RDm84uZNYEi3xnJYdYxrrueR4idCE3 z2VGQc2zdP/zDR+ZoJqJHDmBJ0h1u1ZLRlAHjNXGa42phBbSEusV1bQ2hYN4j7fojlYx c0A06ITAuVQASB5NmBZyuXv5w979exJ2eCFDz89eTJ8nh4YD4FvHQiIkMywDLVHeDw22 d1UA== X-Gm-Message-State: AOJu0Yzi7xRj04t0XcTEV/i6+0scbxx8xLmLw9rrMAvYAPqbvVEnflL4 +naCpM5jDTqSh4PGBC3tmyGiY5IDSxAngLWyzGg= X-Google-Smtp-Source: AGHT+IG82GqE2OkOFg4g/F4ZNHLZbFvAOoBhuD2fqW7Oc6XaB2gQoqEljt4+2KroVvTbJbiTopWZNw== X-Received: by 2002:a05:6808:1642:b0:3b8:b063:9b4e with SMTP id az2-20020a056808164200b003b8b0639b4emr8771874oib.64.1702441165336; Tue, 12 Dec 2023 20:19:25 -0800 (PST) Received: from hermes.lan (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p12-20020a170902e74c00b001d077da4ac4sm9340888plf.212.2023.12.12.20.19.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 20:19:24 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Steven Webster , Matt Peters Subject: [PATCH v2 04/25] net/avp: replace RTE_LOG_DP with rte_log_dp Date: Tue, 12 Dec 2023 20:16:31 -0800 Message-ID: <20231213041920.729403-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231213041920.729403-1-stephen@networkplumber.org> References: <20231213014408.612051-1-stephen@networkplumber.org> <20231213041920.729403-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 Want datapath logs to use own logtype. Signed-off-by: Stephen Hemminger --- drivers/net/avp/avp_logs.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/net/avp/avp_logs.h b/drivers/net/avp/avp_logs.h index 6e297c7a4a81..0ae95a7685c5 100644 --- a/drivers/net/avp/avp_logs.h +++ b/drivers/net/avp/avp_logs.h @@ -7,24 +7,26 @@ #include + +extern int avp_logtype_driver; + +#define PMD_DRV_LOG(level, fmt, args...) \ + rte_log(RTE_LOG_ ## level, avp_logtype_driver, \ + "%s(): " fmt, __func__, ## args) + #ifdef RTE_LIBRTE_AVP_DEBUG_RX #define PMD_RX_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s() rx: " fmt, __func__, ## args) + rte_log(RTE_LOG_ ## level, avp_logtype_driver, \ + "%s() rx: " fmt, __func__, ## args) #else #define PMD_RX_LOG(level, fmt, args...) do { } while (0) #endif #ifdef RTE_LIBRTE_AVP_DEBUG_TX #define PMD_TX_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s() tx: " fmt, __func__, ## args) + rte_log(RTE_LOG_ ## level, avp_logtype_driver, \ + "%s() tx: " fmt, __func__, ## args) #else #define PMD_TX_LOG(level, fmt, args...) do { } while (0) #endif - -extern int avp_logtype_driver; - -#define PMD_DRV_LOG(level, fmt, args...) \ - rte_log(RTE_LOG_ ## level, avp_logtype_driver, \ - "%s(): " fmt, __func__, ## args) - #endif /* _AVP_LOGS_H_ */ -- 2.42.0