DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Jiawen Wu" <jiawenwu@trustnetic.com>
To: "'Ferruh Yigit'" <ferruh.yigit@intel.com>, <dev@dpdk.org>
Cc: <stable@dpdk.org>
Subject: RE: [PATCH 2/2] net/txgbe: fix debug log
Date: Tue, 22 Feb 2022 10:03:46 +0800	[thread overview]
Message-ID: <010501d82790$6dd3ca80$497b5f80$@trustnetic.com> (raw)
In-Reply-To: <cfd3179c-7408-5240-823f-35172d089197@intel.com>



> -----Original Message-----
> From: Ferruh Yigit <ferruh.yigit@intel.com>
> Sent: Monday, February 21, 2022 9:10 PM
> To: Jiawen Wu <jiawenwu@trustnetic.com>; dev@dpdk.org
> Cc: stable@dpdk.org
> Subject: Re: [PATCH 2/2] net/txgbe: fix debug log
> 
> On 2/21/2022 9:21 AM, Jiawen Wu wrote:
> > diff --git a/drivers/net/txgbe/txgbe_logs.h
> > b/drivers/net/txgbe/txgbe_logs.h index 67e9bfb3af..38c5d05984 100644
> > --- a/drivers/net/txgbe/txgbe_logs.h
> > +++ b/drivers/net/txgbe/txgbe_logs.h
> > @@ -48,11 +48,8 @@ extern int txgbe_logtype_tx_free;
> >   #define PMD_TX_FREE_LOG(level, fmt, args...) do { } while (0)
> >   #endif
> >
> > -#define TLOG_DEBUG(fmt, args...)  PMD_DRV_LOG(DEBUG, fmt, ##args)
> > -
> > -#define DEBUGOUT(fmt, args...)    TLOG_DEBUG(fmt, ##args)
> > -#define PMD_INIT_FUNC_TRACE()     TLOG_DEBUG(" >>")
> > -#define DEBUGFUNC(fmt)            TLOG_DEBUG(fmt)
> > +#define DEBUGOUT(fmt, args...)    PMD_DRV_LOG(fmt, ##args)
> > +#define PMD_INIT_FUNC_TRACE()     PMD_DRV_LOG(" >>")
> >
> 
> Hi Jiawen,
> 
> This won't work, macros are missing the log type.
> I guess intention is to change as done in ngbe patch [1].
> 
> I wonder if you send the patches even without compiling them?
> Expectation is authors test the patches before sending them out!
> 
> 
> [1]
>   PMD_DRV_LOG(DEBUG, fmt, ##args)

I'm so sorry.
I compiled and tested it, found and fixed the bug, but maybe I got the file location wrong when merging the codes.




      reply	other threads:[~2022-02-22  2:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-21  9:21 [PATCH 0/2] Wangxun log fixes Jiawen Wu
2022-02-21  9:21 ` [PATCH 1/2] net/ngbe: fix debug log Jiawen Wu
2022-02-21 13:06   ` Ferruh Yigit
2022-02-21  9:21 ` [PATCH 2/2] net/txgbe: " Jiawen Wu
2022-02-21 13:10   ` Ferruh Yigit
2022-02-22  2:03     ` Jiawen Wu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='010501d82790$6dd3ca80$497b5f80$@trustnetic.com' \
    --to=jiawenwu@trustnetic.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).