From 8e4bff4cab0ddac6060645b0715210484d02ff40 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 30 Aug 2017 08:25:59 +0000 Subject: Initial file dump from open source release --- sound/soc/sprd/sprd-asoc-debug.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 sound/soc/sprd/sprd-asoc-debug.h (limited to 'sound/soc/sprd/sprd-asoc-debug.h') 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 */ -- cgit v1.3.1