[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit
Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/boot/common/src/uboot/include/dbglvl_printf.h b/boot/common/src/uboot/include/dbglvl_printf.h
new file mode 100644
index 0000000..f5dd094
--- /dev/null
+++ b/boot/common/src/uboot/include/dbglvl_printf.h
@@ -0,0 +1,26 @@
+/*
+ * (C) Copyright 2016, ZIXC Corporation.
+ *
+ */
+
+#ifndef __DEBUG_LEVEL_PRINTF__
+#define __DEBUG_LEVEL_PRINTF__
+
+#define UBOOT_ERR 1
+#define UBOOT_WARN 2
+#define UBOOT_NOTICE 3
+#define UBOOT_DBG 4
+#define UBOOT_INFO 5
+
+extern unsigned int g_uiDebugLevel;
+
+#define BOOT_PRINTF(Level, Fmt, Args...) \
+ do{ \
+ if (Level <= g_uiDebugLevel) \
+ { \
+ printf("[%s]<%d>"Fmt, __FUNCTION__, __LINE__, ##Args); \
+ } \
+ }while(0)
+
+#endif /* __DEBUG_LEVEL_PRINTF__ */
+