Add hd8122 download API.
Change-Id: Id631c2fbde1364240114e5527f85a4cf1d0987b3
diff --git a/mbtk/libmbtk_lib/src/mbtk_log.c b/mbtk/libmbtk_lib/src/mbtk_log.c
index 1631086..11ec8fd 100755
--- a/mbtk/libmbtk_lib/src/mbtk_log.c
+++ b/mbtk/libmbtk_lib/src/mbtk_log.c
@@ -1,5 +1,5 @@
#include <stdio.h>
-#include <include/log.h>
+//#include <include/log.h>
#include <sys/un.h>
#include <pthread.h>
#include <stdarg.h>
@@ -13,9 +13,22 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
+#include <unistd.h>
+#include <include/logd.h>
+#include <ctype.h>
#include "mbtk_type.h"
#include "mbtk_log.h"
+#include "mbtk_str.h"
+
+typedef enum {
+ LOG_ID_MAIN = 0,
+ LOG_ID_RADIO = 1,
+ LOG_ID_EVENTS = 2,
+ LOG_ID_SYSTEM = 3,
+ LOG_ID_KMSG = 4,
+ LOG_ID_MAX
+} log_id_t;
#define LOG_VERBOSE 8
@@ -79,7 +92,7 @@
va_start(ap, format);
length = vsnprintf(buf, sizeof(buf), format, ap);
if (length < 0 || 0 == length) {
- return -1;
+ return;
}
if (1 == syslog_radio_enable) {