[PATCH v3 01/37] log: fix doc comment for RTE_LOG_DP()
Stephen Hemminger
stephen at networkplumber.org
Wed Dec 13 17:35:35 CET 2023
The macro does not return a numeric status, only void.
Fixes: 5d8f0baf69ea ("log: do not drop debug logs at compile time")
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
lib/log/rte_log.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/lib/log/rte_log.h b/lib/log/rte_log.h
index 4d207b8da2cd..bbbb051c20e2 100644
--- a/lib/log/rte_log.h
+++ b/lib/log/rte_log.h
@@ -348,9 +348,6 @@ int rte_vlog(uint32_t level, uint32_t logtype, const char *format, va_list ap)
* @param ...
* The fmt string, as in printf(3), followed by the variable arguments
* required by the format.
- * @return
- * - 0: Success.
- * - Negative on error.
*/
#define RTE_LOG_DP(l, t, ...) \
(void)((RTE_LOG_ ## l <= RTE_LOG_DP_LEVEL) ? \
--
2.43.0
More information about the dev
mailing list