Fixed the build error for Tizen-Unified-X 88/313988/1 accepted/tizen/unified/20240704.075719 accepted/tizen/unified/dev/20240708.001422 accepted/tizen/unified/toolchain/20240812.132456 accepted/tizen/unified/x/20240704.092500 accepted/tizen/unified/x/asan/20240813.230749
authorwchang kim <wchang.kim@samsung.com>
Wed, 3 Jul 2024 21:40:38 +0000 (06:40 +0900)
committerwchang kim <wchang.kim@samsung.com>
Wed, 3 Jul 2024 21:40:38 +0000 (06:40 +0900)
Change-Id: I951a446921eb37eb76eaadf655b1ed422e3c1dd2

src/sysfs.h

index 52687385a8e26db08a2b590ee5050df65e0ed9a6..7ad843a1626468173e6ef395d4785c078ca9b131 100644 (file)
  * limitations under the License.
  */
 
+#ifdef FEATURE_DLOG
+       #define LOG_TAG "HAL_BACKEND_DEVICE_RPI"
+       #include <dlog.h>
+       #define _D(fmt, args...)        dlog_print(DLOG_DEBUG, LOG_TAG, fmt, ##args)
+       #define _I(fmt, args...)        dlog_print(DLOG_INFO, LOG_TAG, fmt, ##args)
+       #define _W(fmt, args...)        dlog_print(DLOG_WARN, LOG_TAG, fmt, ##args)
+       #define _E(fmt, args...)        dlog_print(DLOG_ERROR, LOG_TAG, fmt, ##args)
+#else
+       #define _D(x, ...)
+       #define _I(x, ...)
+       #define _W(x, ...)
+       #define _E(x, ...)
+#endif
+
 #define MAX_BUF_SIZE   255
 
 int sysfs_read_int(char *path, int *val);