Add debug for media framework
1. add debug for media framework
2. match the spacing of the blanks
@@ -685,6 +685,30 @@ Once LOGM is approved, each module should have its own index
#define ttdbg(format, ...)
#endif
+#ifdef CONFIG_DEBUG_MEDIA_ERROR
+#define meddbg(format, ...) dbg(format, ##__VA_ARGS__)
+#define medlldbg(format, ...) lldbg(format, ##__VA_ARGS__)
+#else
+#define meddbg(x...)
+#define medlldbg(x...)
+#endif
+
+#ifdef CONFIG_DEBUG_MEDIA_WARN
+#define medwdbg(format, ...) wdbg(format, ##__VA_ARGS__)
+#define medllwdbg(format, ...) llwdbg(format, ##__VA_ARGS__)
+#else
+#define medwdbg(x...)
+#define medllwdbg(x...)
+#endif
+
+#ifdef CONFIG_DEBUG_MEDIA_INFO
+#define medvdbg(format, ...) vdbg(format, ##__VA_ARGS__)
+#define medllvdbg(format, ...) llvdbg(format, ##__VA_ARGS__)
+#else
+#define medvdbg(x...)
+#define medllvdbg(x...)
+#endif
+
#else /* CONFIG_CPP_HAVE_VARARGS */
/* Variadic macros NOT supported */
@@ -1036,6 +1060,31 @@ Once LOGM is approved, each module should have its own index
#define audvdbg (void)
#define audllvdbg (void)
#endif
+
+#ifdef CONFIG_DEBUG_MEDIA_ERROR
+#define meddbg dbg
+#define medlldbg lldbg
+#else
+#define meddbg (void)
+#define medlldbg (void)
+#endif
+
+#ifdef CONFIG_DEBUG_MEDIA_WARN
+#define medwdbg wdbg
+#define medllwdbg llwdbg
+#else
+#define medwdbg (void)
+#define medllwdbg (void)
+#endif
+
+#ifdef CONFIG_DEBUG_MEDIA_INFO
+#define medvdbg vdbg
+#define medllvdbg llvdbg
+#else
+#define medllvdbg (void)
+#define medllvdbg (x...)
+#endif
+
#endif /* CONFIG_CPP_HAVE_VARARGS */
/* Buffer dumping macros do not depend on varargs */
