summaryrefslogtreecommitdiff
path: root/sound/soc/sprd/sprd-asoc-debug.h
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2017-08-30 08:25:59 +0000
committerYuval Adam <_@yuv.al>2017-08-30 08:25:59 +0000
commit8e4bff4cab0ddac6060645b0715210484d02ff40 (patch)
tree3a5c3024371a04692a3a6d9974d001cdff8ebf84 /sound/soc/sprd/sprd-asoc-debug.h
Initial file dump from open source releaseHEADmaster
Diffstat (limited to 'sound/soc/sprd/sprd-asoc-debug.h')
-rw-r--r--sound/soc/sprd/sprd-asoc-debug.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/sound/soc/sprd/sprd-asoc-debug.h b/sound/soc/sprd/sprd-asoc-debug.h
new file mode 100644
index 00000000..727cfc3f
--- /dev/null
+++ b/sound/soc/sprd/sprd-asoc-debug.h
@@ -0,0 +1,35 @@
+/*
+ * sound/soc/sprd/sprd-asoc-debug.h
+ *
+ * SPRD ASoC Debug include -- SpreadTrum ASOC Debug.
+ *
+ * Copyright (C) 2013 SpreadTrum Ltd.
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+#ifndef __SPRD_ASOC_DEBUG_H
+#define __SPRD_ASOC_DEBUG_H
+
+#define pr_color_terminal 0
+#if pr_color_terminal
+#define pr_col_s "\e[35m"
+#define pr_col_e "\e[0m"
+#else
+#define pr_col_s
+#define pr_col_e
+#endif
+
+#define pr_id "ASoC:"
+#define pr_s pr_col_s "[" pr_id
+#define pr_e "] " pr_col_e
+
+#define pr_sprd_fmt(id) pr_s id pr_e
+
+#endif /* __SPRD_ASOC_DEBUG_H */