net/nfp: remove compile time log
PATCH 1/1 net/nfp: remove compile time log
Logging should be converted to dynamic log.
--- drivers/net/nfp/nfp_net_logs.h | 7 ------- 1 file changed, 7 deletions(-)
drivers/net/nfp/nfp_net_logs.h +0 -7
@@ -30,14 +30,7 @@ extern int nfp_logtype_init;#define ASSERT (x) do { } while (0)#endif -#define RTE_LIBRTE_NFP_NET_DEBUG_CPP - -#ifdef RTE_LIBRTE_NFP_NET_DEBUG_CPP -#define PMD_CPP_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) -#else #define PMD_CPP_LOG(level, fmt, args...) do { } while (0) -#endif extern int nfp_logtype_driver; #define PMD_DRV_LOG(level, fmt, args...) \
Signature · 1 line
2.31.1
Hi Heinrich,
could you take a look at the patch?
Thanks,
Andrew.
Quoted 27 lines · Ferruh Yigit
Logging should be converted to dynamic log.
Signed-off-by Ferruh Yigit <[email protected]>--- drivers/net/nfp/nfp_net_logs.h | 7 ------- 1 file changed, 7 deletions(-)drivers/net/nfp/nfp_net_logs.h +0
-7@@ -30,14 +30,7 @@ extern int nfp_logtype_init;#define ASSERT (x) do { } while (0)#endif -#define RTE_LIBRTE_NFP_NET_DEBUG_CPP - -#ifdef RTE_LIBRTE_NFP_NET_DEBUG_CPP -#define PMD_CPP_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) -#else #define PMD_CPP_LOG(level, fmt, args...) do { } while (0) -#endif extern int nfp_logtype_driver; #define PMD_DRV_LOG(level, fmt, args...) \
Please review.
28/06/2021 13:13, Andrew Rybchenko:
Quoted 34 lines
Hi Heinrich,
could you take a look at the patch?
Thanks,
Andrew.Quoted 26 lines · Ferruh Yigit
Logging should be converted to dynamic log.
Signed-off-by Ferruh Yigit <[email protected]>--- drivers/net/nfp/nfp_net_logs.h | 7 ------- 1 file changed, 7 deletions(-)drivers/net/nfp/nfp_net_logs.h +0
-7@@ -30,14 +30,7 @@ extern int nfp_logtype_init;#define ASSERT (x) do { } while (0)#endif -#define RTE_LIBRTE_NFP_NET_DEBUG_CPP - -#ifdef RTE_LIBRTE_NFP_NET_DEBUG_CPP -#define PMD_CPP_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) -#else #define PMD_CPP_LOG(level, fmt, args...) do { } while (0) -#endif extern int nfp_logtype_driver; #define PMD_DRV_LOG(level, fmt, args...) \
Heinrich Kuhn
Reviewed-byQuoted 35 lines · Thomas Monjalon
Please review.
28/06/2021 13:13, Andrew Rybchenko:
Quoted 32 lines
Hi Heinrich,
could you take a look at the patch?
Thanks,
Andrew.Quoted 24 lines · Ferruh Yigit
Logging should be converted to dynamic log.
Signed-off-by Ferruh Yigit <[email protected]>--- drivers/net/nfp/nfp_net_logs.h | 7 ------- 1 file changed, 7 deletions(-)drivers/net/nfp/nfp_net_logs.h +0
-7@@ -30,14 +30,7 @@ extern int nfp_logtype_init;#define ASSERT (x) do { } while (0)#endif -#define RTE_LIBRTE_NFP_NET_DEBUG_CPP - -#ifdef RTE_LIBRTE_NFP_NET_DEBUG_CPP -#define PMD_CPP_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) -#else #define PMD_CPP_LOG(level, fmt, args...) do { } while (0) -#endif
Quoted 5 lines
Quoted 2 lines
drivers/net/nfp/nfp_net_logs.h extern int nfp_logtype_init; · line 36
Quoted 2 lines
drivers/net/nfp/nfp_net_logs.h +0
-0extern int nfp_logtype_driver; #define PMD_DRV_LOG(level, fmt, args...) \
Hi Andrew,
Apologies for the delay, looks good thanks
Ferruh Yigit
AppliedQuoted 43 lines · Heinrich Kuhn
Quoted 35 lines · Thomas Monjalon
Please review.
28/06/2021 13:13, Andrew Rybchenko:
Quoted 32 lines
Hi Heinrich,
could you take a look at the patch?
Thanks,
Andrew.Quoted 24 lines · Ferruh Yigit
Logging should be converted to dynamic log.
Signed-off-by Ferruh Yigit <[email protected]>--- drivers/net/nfp/nfp_net_logs.h | 7 ------- 1 file changed, 7 deletions(-)drivers/net/nfp/nfp_net_logs.h +0
-7@@ -30,14 +30,7 @@ extern int nfp_logtype_init;#define ASSERT (x) do { } while (0)#endif -#define RTE_LIBRTE_NFP_NET_DEBUG_CPP - -#ifdef RTE_LIBRTE_NFP_NET_DEBUG_CPP -#define PMD_CPP_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) -#else #define PMD_CPP_LOG(level, fmt, args...) do { } while (0) -#endif Quoted 5 lines
Quoted 2 lines
drivers/net/nfp/nfp_net_logs.h extern int nfp_logtype_init; · line 36
Quoted 2 lines
drivers/net/nfp/nfp_net_logs.h +0
-0extern int nfp_logtype_driver; #define PMD_DRV_LOG(level, fmt, args...) \
Quoted 6 lines
Hi Andrew,
Apologies for the delay, looks good thanks
Reviewed-by Heinrich Kuhn <[email protected]>
Applied to dpdk-next-net/main, thanks.