mirror of
https://github.com/openharmony/third_party_backends.git
synced 2026-07-01 09:11:13 -04:00
34e180823c
Signed-off-by: 刘昊苏 <liuhaosu@huawei.com>
28 lines
705 B
Diff
28 lines
705 B
Diff
diff --git a/include/sane/sanei_debug.h b/include/sane/sanei_debug.h
|
|
index 465d3e25e..b18da651c 100644
|
|
--- a/include/sane/sanei_debug.h
|
|
+++ b/include/sane/sanei_debug.h
|
|
@@ -8,7 +8,9 @@
|
|
#define _SANEI_DEBUG_H
|
|
|
|
#include <sane/sanei.h>
|
|
-
|
|
+#ifdef ENABLE_HILOG
|
|
+#include "hilog/log.h"
|
|
+#endif // ENABLE_HILOG
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
@@ -79,7 +81,11 @@ extern void sanei_debug_ndebug (int level, const char *msg, ...);
|
|
|
|
# define DBG_LEVEL (0)
|
|
# define DBG_INIT()
|
|
+#ifndef ENABLE_HILOG
|
|
# define DBG sanei_debug_ndebug
|
|
+#else
|
|
+# define DBG(level, ...) ((void)HiLogPrint(LOG_APP, LOG_INFO, 0, "sanekit", __VA_ARGS__))
|
|
+#endif // ENABLE_HILOG
|
|
# define IF_DBG(x)
|
|
|
|
#else /* !NDEBUG */
|