[PROTO] add MSG_WARNING support 10/24310/3
authorVitaliy Cherepanov <v.cherepanov@samsung.com>
Thu, 10 Jul 2014 09:12:41 +0000 (13:12 +0400)
committerDmitry Kovalenko <d.kovalenko@samsung.com>
Wed, 16 Jul 2014 11:56:32 +0000 (04:56 -0700)
MSG_WARNING support between daemon and LD_PRELOADed application
log output format changed

Change-Id: I80c08e2412daea29b51df4897530f32787a0280a
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
daemon/daemon.h
daemon/threads.c

index 01982f3..5389d9d 100644 (file)
@@ -82,7 +82,8 @@ enum TargetMessageType
        MSG_PID = 8,
        MSG_MSG = 9,
        MSG_ALLOC = 10,
-       MSG_ERROR = 11
+       MSG_ERROR = 11,
+       MSG_WARNING = 12
 };
 #define IS_PROBE_MSG(type) (((type) & 0x0100) == 0x0100)
 
index f2a19c3..f00e2d0 100644 (file)
@@ -157,13 +157,15 @@ static void* recvThread(void* data)
                        break;
                } else if (log.type == MSG_MSG) {
                        // don't send to host
-                       LOGI("EXTRA MSG(%u) len=%u data='%s'\n", log.type,
-                            log.length, log.data);
+                       LOGI("EXTRA '%s'\n", log.data);
                        continue;
                } else if (log.type == MSG_ERROR) {
                        // don't send to host
-                       LOGE("EXTRA MSG(%u) len=%u data='%s'\n", log.type,
-                            log.length, log.data);
+                       LOGE("EXTRA '%s'\n", log.data);
+                       continue;
+               } else if (log.type == MSG_WARNING) {
+                       // don't send to host
+                       LOGW("EXTRA '%s'\n", log.data);
                        continue;
                }
 #ifdef PRINT_TARGET_LOG