ASR_BASE
Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/marvell/services/audio/libacm/acm/src/acm_log.c b/marvell/services/audio/libacm/acm/src/acm_log.c
new file mode 100644
index 0000000..b2251e4
--- /dev/null
+++ b/marvell/services/audio/libacm/acm/src/acm_log.c
@@ -0,0 +1,35 @@
+/******************************************************************************
+*(C) Copyright 2014 Marvell International Ltd.
+* All Rights Reserved
+******************************************************************************/
+
+#ifdef PXA1826_AUDIO
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdarg.h>
+
+#include "acm_log.h"
+
+int __acm_log_print(int prio, const char *tag, const char *fmt, ...)
+{
+ va_list ap;
+ char buf[LOG_BUF_SIZE];
+ int write_length;
+ (void)prio;
+
+ write_length = snprintf(buf,LOG_BUF_SIZE,"%s: ",tag);
+ if ((write_length != 0) && (LOG_BUF_SIZE > write_length + 2)) {
+ va_start(ap, fmt);
+ write_length += vsnprintf(&buf[write_length], LOG_BUF_SIZE - write_length - 2, fmt, ap);
+ va_end(ap);
+ buf[write_length++] = '\n';
+ buf[write_length++] = '\0';
+ printf(buf);
+ }
+
+ return write_length;
+}
+#endif//PXA1826_AUDIO