Skip to contentSkip to conversation

net/nfp: remove compile time log

PATCH In review Ferruh Yigit 4 participants 5 messages May 18, 2021 – Aug 16, 2021 Network drivers

lore
Share & tools
lore
#0 lore raw

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
index 27dd87611b94..76cc94cb6565 100644
@@ -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
#1 lore raw

Hi Heinrich,

could you take a look at the patch?

Thanks,
Andrew.

Quoted 27 lines · Ferruh Yigit

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
index 27dd87611b94..76cc94cb6565 100644
@@ -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...) \
#2 lore raw

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.

---
  drivers/net/nfp/nfp_net_logs.h | 7 -------
  1 file changed, 7 deletions(-)
drivers/net/nfp/nfp_net_logs.h +0 -7
index 27dd87611b94..76cc94cb6565 100644
@@ -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...) \
Reviewed-by
#3 lore raw
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.

---
  drivers/net/nfp/nfp_net_logs.h | 7 -------
  1 file changed, 7 deletions(-)
drivers/net/nfp/nfp_net_logs.h +0 -7
index 27dd87611b94..76cc94cb6565 100644
@@ -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 -0
  extern int nfp_logtype_driver;
  #define PMD_DRV_LOG(level, fmt, args...) \

Hi Andrew,

Apologies for the delay, looks good thanks

author Applied
#4 lore raw
Quoted 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.

---
  drivers/net/nfp/nfp_net_logs.h | 7 -------
  1 file changed, 7 deletions(-)
drivers/net/nfp/nfp_net_logs.h +0 -7
index 27dd87611b94..76cc94cb6565 100644
@@ -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 -0
  extern int nfp_logtype_driver;
  #define PMD_DRV_LOG(level, fmt, args...) \
Quoted 6 lines

Hi Andrew,

Apologies for the delay, looks good thanks

Applied to dpdk-next-net/main, thanks.