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 2D3D1436E3; Wed, 13 Dec 2023 17:40:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0EFD442F11; Wed, 13 Dec 2023 17:40:12 +0100 (CET) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mails.dpdk.org (Postfix) with ESMTP id BCB4E410DD for ; Wed, 13 Dec 2023 17:40:08 +0100 (CET) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1d3536cd414so6013185ad.2 for ; Wed, 13 Dec 2023 08:40:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702485608; x=1703090408; 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=10T0oz6eXkQc098ZKBoKnfmVijWAQJM22pUknc6OZE4=; b=nm/wX2xarQg0MLIMFUrxahgQ0ku/fXUqSbiRO/6IMDY13fZNdZw73eLcqe+W3LKZMW 6yyJDrnR5UaJ0ey48dcC3eAFsum6kxB2gnU9k0Dcy435N5wkISxI3ZlNT94MyvbkJiVO T1WFZ95w51VDKjnVJiNXoGTFmqTNEmefMbu7fUMgcFEwqwERuoqZL7mIOTU6giTHdNpN MXm3go4Y8h9VGZsog8HZa63rQlARQPMTTesPmYOTh6Qo775nC3s4mjiqldPaHvyDiHS9 mEG24YLRNCyY+sjIfn+cumfD1AHIn6921vrdeeDcIhn5xk31JFP+almgicwmG0beIA1w ND6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702485608; x=1703090408; 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=10T0oz6eXkQc098ZKBoKnfmVijWAQJM22pUknc6OZE4=; b=Zh53F9eGq65np0dHyITelUS38ZNUqNRR16MY4mlASxClDv9Kvkiu6Wx8mKcrzvwSWL +HgZNITFm1uO4VXcN1Tc1C+eaYM7SpCAp89aGUTbyWQzY55LEVDu7S/BQB9iTHjiIJTU 75W5Uo/RweP0+UYHfFfGLeO8A2RtrU5NhuxFcuct5KF+rHfE5YqZb4GAt6uYO5zFWPFw BjTxM3uLIceuRm95h0a95YW4r24RSRqetElUJQTdSUxqus4VoiRHN9fPK8eDWoV/STHq ZhbzVUoautHPqurRuyU2eGiP9VgYF/l2AWzTuk78vsHj35OAc0AtKU+cNUH19A85SYbS AcEw== X-Gm-Message-State: AOJu0YwpjUrKqfWt4CRbIriHCQtnqMChrxRgQBQVSXO6v9Y+rJkclPPn Fkiml6LsM5HuR/oT2M1au3m/TxKhJy2lTsk4qSs= X-Google-Smtp-Source: AGHT+IELDVmwhzDxMjLjgHNboyYI2ypEZTl47z5EervbOZG1wKyZ4AM+E4a3sXDjBq1fV3PvJQXUJg== X-Received: by 2002:a17:902:8682:b0:1d0:cd9e:424b with SMTP id g2-20020a170902868200b001d0cd9e424bmr7829890plo.43.1702485608000; Wed, 13 Dec 2023 08:40:08 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id 4-20020a170902c24400b001d0a6f31519sm10749593plg.188.2023.12.13.08.40.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:40:07 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Maxime Coquelin , Chenbo Xia Subject: [PATCH v3 15/37] net/virtio: replace RTE_LOG_DP with rte_log_dp Date: Wed, 13 Dec 2023 08:35:49 -0800 Message-ID: <20231213163820.894987-16-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231213163820.894987-1-stephen@networkplumber.org> References: <20231213014408.612051-1-stephen@networkplumber.org> <20231213163820.894987-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.43.0