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 BA97B436D9; Wed, 13 Dec 2023 05:21:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2FC4042EC6; Wed, 13 Dec 2023 05:19:42 +0100 (CET) Received: from mail-il1-f174.google.com (mail-il1-f174.google.com [209.85.166.174]) by mails.dpdk.org (Postfix) with ESMTP id 81E9D42EF5 for ; Wed, 13 Dec 2023 05:19:38 +0100 (CET) Received: by mail-il1-f174.google.com with SMTP id e9e14a558f8ab-35f697bf477so3509115ab.3 for ; Tue, 12 Dec 2023 20:19:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702441178; x=1703045978; 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=N3kV5ly3463R0EGCUH77lgu86dQlVi4yjhu8IwsBNlI=; b=QsQV5YueqY+ByluX5Cf42wzvoWCsfotAE9dRXI9fI8ZJ4vQjTj9gdmDMYoEjkXD7m7 9yLTaXByxLdMzyjqV8UbmbDxpUxEeRB0z77CRyJ5Da6f2OrfFEHG0PnvF0ZJNjomOjVo xGDeYBY6P6MAOG6sMdlVfoKZFRL9fU7miOrVfDaWOlwXgKJUIv+5pgYF5NmmewHwO6Kq CT8zdjqXN9tmSAWDCpd/cENFLDgurAOKMz1OaCz5n2MV/5XC+6UOg/mXsPxY7kNdH43w 93pw3bdQ0nERcItUtAU5XgFLIaqmp3Ei8WM4XK38Rplt/XyQOGU1l2HFJkmL1FmNbLlQ 401w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702441178; x=1703045978; 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=N3kV5ly3463R0EGCUH77lgu86dQlVi4yjhu8IwsBNlI=; b=qKKyxrjCmCN8o8cSGtH119KP6mu6oN/YrP7LsXI+ngldKmH5TB6SXmECKwvk4tPO+J za7l3CCqMmjcAo2+zbDAMwBEwayug1Qw/sj7psRbNwfLqUXYn4wiD20M+PMqHS7Rzo6b LbDB+9JqbOIHRPTHjKA4U9g6JdQVoUZV4CN2dnWdZUrv6dRGRn/RbZsT4Us+dvqCgNOO 7WNUo9YrR50mL6MtzxC6C1G9un8n6UU7N4A1FSKz8JKzqcomTlWogBO4OXibg1y/9VPA hLXtU5hD86wdfzqGTQyqwdsT5KfBjWkZb1Xb73pug165t+tT0rYLoAvJhXiOlD56JVEn bwgA== X-Gm-Message-State: AOJu0YxRH4lxD/UVZcZwy9RJfcfxAeRAi83WeVzx0SLmRWFb9QRYaLbk 7CyMvlRbgRtp+SUaAQcanY+pe31P/4YS2/qgjig= X-Google-Smtp-Source: AGHT+IEypJomXrbUhwphdyd3Y2BRurqERLh0/xQoyVjs23+QBlS2a04tXOfCjatxKPAk4GSjIeF73g== X-Received: by 2002:a05:6e02:214d:b0:35d:5fc7:f54e with SMTP id d13-20020a056e02214d00b0035d5fc7f54emr11936931ilv.36.1702441177952; Tue, 12 Dec 2023 20:19:37 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 20:19:37 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Maxime Coquelin , Chenbo Xia Subject: [PATCH v2 15/25] net/virtio: replace RTE_LOG_DP with rte_log_dp Date: Tue, 12 Dec 2023 20:16:42 -0800 Message-ID: <20231213041920.729403-16-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/virtio/virtio_logs.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/net/virtio/virtio_logs.h b/drivers/net/virtio/virtio_logs.h index 9b1b1defc5a6..0447ee961fb6 100644 --- a/drivers/net/virtio/virtio_logs.h +++ b/drivers/net/virtio/virtio_logs.h @@ -14,23 +14,25 @@ extern int virtio_logtype_init; #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>") +extern int virtio_logtype_driver; +#define PMD_DRV_LOG(level, fmt, args...) \ + rte_log(RTE_LOG_ ## level, virtio_logtype_driver, \ + "%s(): " fmt "\n", __func__, ## args) + #ifdef RTE_LIBRTE_VIRTIO_DEBUG_RX #define PMD_RX_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s() rx: " fmt "\n", __func__, ## args) + rte_log(RTE_LOG_ ## level, virtio_logtype_driver, \ + "%s() rx: " fmt "\n", __func__, ## args) #else #define PMD_RX_LOG(level, fmt, args...) do { } while(0) #endif #ifdef RTE_LIBRTE_VIRTIO_DEBUG_TX #define PMD_TX_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s() tx: " fmt "\n", __func__, ## args) + rte_log(RTE_LOG_ ## level, virtio_logtype_driver, \ + "%s() tx: " fmt "\n", __func__, ## args) #else #define PMD_TX_LOG(level, fmt, args...) do { } while(0) #endif -extern int virtio_logtype_driver; -#define PMD_DRV_LOG(level, fmt, args...) \ - rte_log(RTE_LOG_ ## level, virtio_logtype_driver, \ - "%s(): " fmt "\n", __func__, ## args) - #endif /* _VIRTIO_LOGS_H_ */ -- 2.42.0