summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDavid Marchand <[email protected]>2023-12-13 19:23:04 +0100
committerDavid Marchand <[email protected]>2024-10-03 16:18:27 +0200
commit2b843cac232eb3f2fa79e4254e21766817e2019f (patch)
treeb6f706fa3f1e916cc55f7ad2b5796e140980b2cd /drivers/gpu
parent6f0f1065cc0e20b73bf69602d1d069a4be76d126 (diff)
drivers: use per line logging in helpers
Use RTE_LOG(_DP)?_LINE(_PREFIX)? in existing macros that append a \n. Signed-off-by: David Marchand <[email protected]> Acked-by: Chengwen Feng <[email protected]> Acked-by: Andrew Rybchenko <[email protected]> Acked-by: Thomas Monjalon <[email protected]>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/cuda/common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/cuda/common.h b/drivers/gpu/cuda/common.h
index e809988503..e098418401 100644
--- a/drivers/gpu/cuda/common.h
+++ b/drivers/gpu/cuda/common.h
@@ -13,10 +13,11 @@
#include <rte_errno.h>
extern int cuda_logtype;
+#define RTE_LOGTYPE_CUDA cuda_logtype
/* Helper macro for logging */
#define rte_cuda_log(level, fmt, ...) \
- rte_log(RTE_LOG_ ## level, cuda_logtype, fmt "\n", ##__VA_ARGS__)
+ RTE_LOG_LINE(level, CUDA, fmt, ##__VA_ARGS__)
#define rte_cuda_debug(fmt, ...) \
rte_cuda_log(DEBUG, RTE_STR(__LINE__) ":%s() " fmt, __func__, \