From patchwork Mon Dec 20 13:26:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Bhansali X-Patchwork-Id: 105293 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: 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 24A25A00BE; Mon, 20 Dec 2021 14:26:37 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E01E440040; Mon, 20 Dec 2021 14:26:36 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 3F3974003C for ; Mon, 20 Dec 2021 14:26:35 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 1BK8T66T011501 for ; Mon, 20 Dec 2021 05:26:33 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=loQePaBiC2kYOd7JaeK4r6sqGdXcCd8L4kR9eRyi5Rs=; b=avSWey27WqlfFrJtdD22g4rCDc8E303+FWs1Z7652swAXSrfYeSotCUlFO4iJE//tY0v 7FS5DQ8olybUhI/u/WSjGEm+r4thWp2ux/nmlWeP9R6vTTGZnqaSxArP/yxCI7sjGgIa DH5+ET03D7mReMr3OdS+whwUfRYe+MUoBAwSxMUI2oZoqmzqH1hr1VYHoQstoK9yaYU+ D0+vXbc59h+SqvvschuwEgndh8ov61d2iVteKgPzcfROk4FHB7W4czvOMwilkZ2Pma3Y ZZuVlfHDIbHYdeE6kv4J2R8Isfx0Y3KkuEzNil8CTaYLFzeGjM/z0yo70F6sBjYYoaJq 7Q== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3d2dfqtyd2-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 20 Dec 2021 05:26:33 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 20 Dec 2021 05:26:31 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 20 Dec 2021 05:26:31 -0800 Received: from localhost.localdomain (unknown [10.28.48.107]) by maili.marvell.com (Postfix) with ESMTP id AF4F13F70CC; Mon, 20 Dec 2021 05:26:29 -0800 (PST) From: Rahul Bhansali To: , Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , Rahul Bhansali Subject: [PATCH] common/cnxk: update NIX and NPA dump function Date: Mon, 20 Dec 2021 18:56:25 +0530 Message-ID: <20211220132625.13496-1-rbhansali@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: CP3Wb-Xr9zu811cN3h_xUpkeA18UtZni X-Proofpoint-GUID: CP3Wb-Xr9zu811cN3h_xUpkeA18UtZni X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2021-12-20_06,2021-12-20_01,2021-12-02_01 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 Updates nix_dump and npa_dump to use plt_dump function. Signed-off-by: Rahul Bhansali Acked-by: Jerin Jacob --- drivers/common/cnxk/roc_nix_debug.c | 4 ++-- drivers/common/cnxk/roc_npa_debug.c | 2 +- drivers/common/cnxk/roc_platform.h | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/common/cnxk/roc_nix_debug.c b/drivers/common/cnxk/roc_nix_debug.c index 266935a6c5..7466f782c3 100644 --- a/drivers/common/cnxk/roc_nix_debug.c +++ b/drivers/common/cnxk/roc_nix_debug.c @@ -5,14 +5,14 @@ #include "roc_api.h" #include "roc_priv.h" -#define nix_dump(fmt, ...) fprintf(stderr, fmt "\n", ##__VA_ARGS__) +#define nix_dump plt_dump #define NIX_REG_INFO(reg) \ { \ reg, #reg \ } #define NIX_REG_NAME_SZ 48 -#define nix_dump_no_nl(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__) +#define nix_dump_no_nl plt_dump_no_nl struct nix_lf_reg_info { uint32_t offset; diff --git a/drivers/common/cnxk/roc_npa_debug.c b/drivers/common/cnxk/roc_npa_debug.c index 421c2af8a5..798ace291c 100644 --- a/drivers/common/cnxk/roc_npa_debug.c +++ b/drivers/common/cnxk/roc_npa_debug.c @@ -5,7 +5,7 @@ #include "roc_api.h" #include "roc_priv.h" -#define npa_dump(fmt, ...) fprintf(stderr, fmt "\n", ##__VA_ARGS__) +#define npa_dump plt_dump static inline void npa_pool_dump(__io struct npa_pool_s *pool) diff --git a/drivers/common/cnxk/roc_platform.h b/drivers/common/cnxk/roc_platform.h index 61d4781209..13b23cec03 100644 --- a/drivers/common/cnxk/roc_platform.h +++ b/drivers/common/cnxk/roc_platform.h @@ -204,6 +204,7 @@ extern int cnxk_logtype_tm; #define plt_warn(fmt, args...) RTE_LOG(WARNING, PMD, fmt "\n", ##args) #define plt_print(fmt, args...) RTE_LOG(INFO, PMD, fmt "\n", ##args) #define plt_dump(fmt, ...) fprintf(stderr, fmt "\n", ##__VA_ARGS__) +#define plt_dump_no_nl(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__) /** * Log debug message if given subsystem logging is enabled.