[Title] Enable DEBUG_CHANNEL feature.
authorKitae Kim <kt920.kim@samsung.com>
Thu, 8 Mar 2012 07:52:08 +0000 (16:52 +0900)
committerKitae Kim <kt920.kim@samsung.com>
Thu, 8 Mar 2012 07:52:08 +0000 (16:52 +0900)
[Type]
[Module] emulator / logging
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

tizen/src/Makefile.tizen
tizen/src/debug_ch.c
tizen/src/debug_ch.h

index 111816b..b6b4122 100644 (file)
@@ -12,7 +12,7 @@ obj-y += emulator.o
 obj-y += sdb.o
 
 # debugch
-#obj-y += debug_ch.c
+obj-y += debug_ch.o
 
 # maru hw
 #hw-obj-y += maru_board.o
index 50bd9b6..b8767ef 100644 (file)
 #include <assert.h>
 #include <unistd.h>
 #include "debug_ch.h"
-#include "fileio.h"
+// #include "fileio.h"
 
+#if 0
 extern STARTUP_OPTION startup_option;
+#endif
+
 static char logfile[256] = { 0, };
 static char debugchfile[256] = {0, };
 static inline int interlocked_xchg_add( int *dest, int incr )
@@ -257,8 +260,13 @@ static void debug_init(void)
                return;  /* already initialized */
 
        nb_debug_options = 0;
+
+#if 0
        strcpy(debugchfile, get_etc_path());
        strcat(debugchfile, "/DEBUGCH");
+#endif
+       strcpy(debugchfile, "DEBUGCH");
+
 
        fp= fopen(debugchfile, "r");
        if( fp == NULL){
@@ -289,8 +297,11 @@ static void debug_init(void)
                free(tmp);
        }
 
+#if 0
        strcpy(logfile, get_virtual_target_abs_path(startup_option.vtm));
        strcat(logfile, "logs/emulator.log");
+#endif
+       strcpy(logfile, "emulator.log");
 
        if(access(logfile, F_OK | R_OK) == 0)
                remove(logfile);
index 89327fc..c500233 100644 (file)
@@ -33,7 +33,7 @@
 
 #include <sys/types.h>
 
-#define NO_DEBUG
+// #define NO_DEBUG
 
 #ifdef __cplusplus
 extern "C" {