[v2] rcu: fix build failure with debug dp log level
Checks
Commit Message
Build fails if RTE_LOG_DP_LEVEL is set to RTE_LOG_DEBUG. Fix the
same by including the required header.
../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 | 1 +
1 file changed, 1 insertion(+)
--
2.25.1
Comments
29/09/2022 12:27, Anoob Joseph:
> Build fails if RTE_LOG_DP_LEVEL is set to RTE_LOG_DEBUG. Fix the
> same by including the required header.
>
> ../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>
Applied, thanks.
Would be good to avoid the tool doing the same mistake again.
@@ -29,6 +29,7 @@
extern "C" {
#endif
+#include <inttypes.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdint.h>