summaryrefslogtreecommitdiff
path: root/lib/avb/fsl/debug.h
diff options
context:
space:
mode:
authorzhang sanshan <sanshan.zhang@nxp.com>2017-05-15 10:45:07 +0800
committerChen Guoyin <guoyin.chen@nxp.com>2017-07-10 15:08:53 +0800
commit1c79796a523255af5d012fa3cbc5400131b3b8b9 (patch)
tree671d094845bc787fca67f158f73084db3ee80f49 /lib/avb/fsl/debug.h
parent893ec7807779aa34ce49866f03e49c592fff9543 (diff)
downloadu-boot-imx-1c79796a523255af5d012fa3cbc5400131b3b8b9.zip
u-boot-imx-1c79796a523255af5d012fa3cbc5400131b3b8b9.tar.gz
u-boot-imx-1c79796a523255af5d012fa3cbc5400131b3b8b9.tar.bz2
MA-9409-1 enable avb on android things.
Fix issue for API changed from v2017. porting below patch from v2016. commit 44834fd12f60a090e3d10ab6f84a75460894d49d Change-Id: Ifaf0b86dd29648f9150646f00f54502676df9013 Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
Diffstat (limited to 'lib/avb/fsl/debug.h')
-rw-r--r--lib/avb/fsl/debug.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/avb/fsl/debug.h b/lib/avb/fsl/debug.h
new file mode 100644
index 0000000..c1165ec
--- /dev/null
+++ b/lib/avb/fsl/debug.h
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2016 Freescale Semiconductor, Inc.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef __AVB_DEBUG_H__
+#define __AVB_DEBUG_H__
+
+#ifdef AVB_VVDEBUG
+#define AVB_VDEBUG
+#define VVDEBUG(format, ...) printf(" %s: "format, __func__, ##__VA_ARGS__)
+#else
+#define VVDEBUG(format, ...)
+#endif
+
+#ifdef AVB_VDEBUG
+#define AVB_DEBUG
+#define VDEBUG(format, ...) printf(" %s: "format, __func__, ##__VA_ARGS__)
+#else
+#define VDEBUG(format, ...)
+#endif
+
+#ifdef AVB_DEBUG
+#define DEBUGAVB(format, ...) printf(" %s: "format, __func__, ##__VA_ARGS__)
+#else
+#define DEBUGAVB(format, ...)
+#endif
+
+#define ERR(format, ...) printf("%s: "format, __func__, ##__VA_ARGS__)
+
+#define HEXDUMP_COLS 16
+#define HEXDUMP_WIDTH 1
+
+#endif