DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] rcu: fix build failure with debug dp log level
@ 2022-08-29 16:51 Anoob Joseph
  2022-08-29 16:55 ` Honnappa Nagarahalli
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Anoob Joseph @ 2022-08-29 16:51 UTC (permalink / raw)
  To: Honnappa Nagarahalli; +Cc: Jerin Jacob, dev, sean.morrissey

Build fails if RTE_LOG_DP_LEVEL is set to RTE_LOG_DEBUG. Fix the
same by including the required header when RTE_LOG_DP_LEVEL is
set to RTE_LOG_DEBUG.

../lib/rcu/rte_rcu_qsbr.h:678:40: error: expected ‘)’ before ‘PRIu64’
  678 |    "%s: status: least acked token = %" PRIu64,
      |                                        ^~~~~~

Fixes: 30a1de105a5f ("lib: remove unneeded header includes")
Cc: sean.morrissey@intel.com

Signed-off-by: Anoob Joseph <anoobj@marvell.com>
---
 lib/rcu/rte_rcu_qsbr.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/rcu/rte_rcu_qsbr.h b/lib/rcu/rte_rcu_qsbr.h
index d81bf5e8db..b0f1720ca1 100644
--- a/lib/rcu/rte_rcu_qsbr.h
+++ b/lib/rcu/rte_rcu_qsbr.h
@@ -37,6 +37,10 @@ extern "C" {
 #include <rte_atomic.h>
 #include <rte_ring.h>

+#if RTE_LOG_DP_LEVEL >= RTE_LOG_DEBUG
+#include <inttypes.h>
+#endif
+
 extern int rte_rcu_log_type;

 #if RTE_LOG_DP_LEVEL >= RTE_LOG_DEBUG
--
2.25.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-10-06 10:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-29 16:51 [PATCH] rcu: fix build failure with debug dp log level Anoob Joseph
2022-08-29 16:55 ` Honnappa Nagarahalli
2022-08-30  8:38   ` Morrissey, Sean
2022-08-30 13:17     ` Honnappa Nagarahalli
2022-09-28 22:04       ` Honnappa Nagarahalli
2022-09-28 22:21 ` Stephen Hemminger
2022-09-29  3:25   ` [EXT] " Anoob Joseph
2022-09-29  8:27     ` Bruce Richardson
2022-09-29 10:27 ` [PATCH v2] " Anoob Joseph
2022-10-06 10:40   ` Thomas Monjalon

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).