Fix code warning.

Change-Id: Ib11fb49f528d3688351ae349d5b4e307c28b3967
diff --git a/mbtk/libmbtk_lib/common/mbtk_debug.c b/mbtk/libmbtk_lib/common/mbtk_debug.c
index e9280c9..23e8431 100755
--- a/mbtk/libmbtk_lib/common/mbtk_debug.c
+++ b/mbtk/libmbtk_lib/common/mbtk_debug.c
@@ -28,6 +28,8 @@
 #include <time.h>
 #include <sys/time.h>
 #include <stdarg.h>
+#include <execinfo.h>
+#include <cutils/properties.h>
 
 #include "mbtk_type.h"
 #include "mbtk_log.h"
@@ -57,7 +59,7 @@
 
 
 static char proc_name[100];
-static char proc_dump_name[100];
+static char proc_dump_name[100 * 2];
 static int proc_dump_fd = -1;
 
 #ifdef HAS_ULSLIB
@@ -85,7 +87,9 @@
         tmp++;
         *tmp = '\n';
 
-        write(proc_dump_fd, buf, strlen(buf));
+        if(write(proc_dump_fd, buf, strlen(buf)) != strlen(buf)) {
+            // Do nothing.
+        }
 
         va_end(ap);
     }
@@ -264,7 +268,7 @@
 
 #if 1
 #define BACKTRACE_SIZE 32
-void sigsegv_handler_with_thread(int signo) {
+void sigsegv_handler_with_thread(int signo,siginfo_t *info, void *context) {
     struct timeval log_time;
     char tmp[50] = {0};
     gettimeofday(&log_time, NULL);