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 D503EA04A2; Sun, 23 Jan 2022 14:18:49 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 63303426E7; Sun, 23 Jan 2022 14:18:49 +0100 (CET) Received: from mail-il1-f182.google.com (mail-il1-f182.google.com [209.85.166.182]) by mails.dpdk.org (Postfix) with ESMTP id DC63340040 for ; Sun, 23 Jan 2022 14:18:47 +0100 (CET) Received: by mail-il1-f182.google.com with SMTP id o10so11659446ilh.0 for ; Sun, 23 Jan 2022 05:18:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BjeeXZ1jvPHotjZpePsgtha3OLVFNOmECU1pdkbk0jc=; b=n+mjtcSeJdTYHnqtR93AUukoa7/kIe1ED3VZOYxuI8EpmW3KMC62Bo7wTYeyaLRW8P 82ybglVBYicWEcyvo8QVDVGramQHtDJXgPJnJAfF50TQMbHlFx08bGkuAYIQ0XNv3qgT IPSTem62BIavmP+rf0Yjza9W5l3NzWnOEicRtY980V7f94+b7cs2qzECluJ10fGsyZyQ jL0/VnZC58n9OvqMHB9aKYozSizubRQ2uVymA79aY2X/ZKI/4y0ESJ8zleJ54OFRX1Ry bt7/J4M3eJ1H2jJJ5iUpGUK91uGaOGBQrUwZ17ACF76Cq27yQgP6Nv+uve8iT0bwLbBL on5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BjeeXZ1jvPHotjZpePsgtha3OLVFNOmECU1pdkbk0jc=; b=I5LWUGrpYIeqUYD5YTCxDUp2e55Q84DGJqlPZ3hga5GEZceMmvNTtKgKY6mNZZ2eDy KIu+zlEOXnPYNDPLC3yBCVGRJFn3DlifcYOwzIDUS1aXXAcX8F6DUSJyA8pPjCjqHVxr g/AIbeWlEVOlVS5f4mECqkWQzT+TAa9o4nGkBIqy4tIJydD7z6QBlni47utsZ2O8gK0K U4XB2A5XJCqQAmJfEmNqopWdPSKJWL+iBF2whCrhut8/2SI2y4J5Ai5adgdjslPpuLyo k9Kb3LqiHJnFDodnLhSPixINywTzuKCDhogO+toMr6gHpenct8ACZzDXdQFXYOy15Mn4 xDRQ== X-Gm-Message-State: AOAM533Xy7ltG+HG/uwT02/90oHEvdWAj9m/RP3gZLb8qS/YHYsdDVW8 eu7Zj7iRH+0lYk/gJHPZQnqM4bFTlCWo2FE6HVY= X-Google-Smtp-Source: ABdhPJytYW0tSnJfzW0BCM5Ol8VonSCRoegwkWIlp3/WQgH2WRXWB5cVAwl9zow2II48GI0VEWox4P2OqgM0IzIIYUA= X-Received: by 2002:a92:cd87:: with SMTP id r7mr6488557ilb.192.1642943927142; Sun, 23 Jan 2022 05:18:47 -0800 (PST) MIME-Version: 1.0 References: <20211220132625.13496-1-rbhansali@marvell.com> In-Reply-To: <20211220132625.13496-1-rbhansali@marvell.com> From: Jerin Jacob Date: Sun, 23 Jan 2022 18:48:21 +0530 Message-ID: Subject: Re: [PATCH] common/cnxk: update NIX and NPA dump function To: Rahul Bhansali , Ferruh Yigit Cc: dpdk-dev , Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Jerin Jacob Content-Type: text/plain; charset="UTF-8" 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 On Mon, Dec 20, 2021 at 6:56 PM Rahul Bhansali wrote: > > Updates nix_dump and npa_dump to use plt_dump function. > > Signed-off-by: Rahul Bhansali Acked-by: Jerin Jacob Applied to dpdk-next-net-mrvl/for-next-net. Thanks > --- > 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. > -- > 2.25.1 >