Apply Secure Log
authorSung-jae Park <nicesj.park@samsung.com>
Mon, 3 Jun 2013 05:56:31 +0000 (14:56 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Mon, 3 Jun 2013 05:56:31 +0000 (14:56 +0900)
[model] Redwood
[binary_type] AP
[customer] Docomo/Orange/Open
[issue#] N/A
[problem] Secure Log is not applied
[cause] N/A
[solution] Apply Secure Log
[team] HomeTF
[request]
[horizontal_expansion]

Change-Id: If4364bfb0eeee60327879049f0f0158a13eecd5b

include/debug.h
src/snapshot_window.c
src/virtual_window.c

index 5904b4c..54a63b2 100644 (file)
@@ -14,6 +14,6 @@
  * limitations under the License.
  */
 
-#define DbgPrint(format, arg...)       LOGD("[\e[32m%s/%s\e[0m:%d] " format, basename(__FILE__), __func__, __LINE__, ##arg)
-#define ErrPrint(format, arg...)       LOGE("[\e[32m%s/%s\e[0m:%d] " format, basename(__FILE__), __func__, __LINE__, ##arg)
+#define DbgPrint(format, arg...)       SECURE_LOGD("[\e[32m%s/%s\e[0m:%d] " format, basename(__FILE__), __func__, __LINE__, ##arg)
+#define ErrPrint(format, arg...)       SECURE_LOGE("[\e[32m%s/%s\e[0m:%d] " format, basename(__FILE__), __func__, __LINE__, ##arg)
 /* End of a file */
index 3108487..8dfea1e 100644 (file)
@@ -78,18 +78,18 @@ static inline int flush_data_to_file(Evas *e, char *data, const char *filename,
 
         if (evas_object_image_save(output, filename, NULL, QUALITY_N_COMPRESS) == EINA_FALSE) {
                 evas_object_del(output);
-               LOGD("Faield to save a captured image (%s)\n", filename);
+               SECURE_LOGD("Faield to save a captured image (%s)\n", filename);
                 return LB_STATUS_ERROR_IO;
         }
 
        evas_object_del(output);
 
         if (access(filename, F_OK) != 0) {
-               LOGD("File %s is not found\n", filename);
+               SECURE_LOGD("File %s is not found\n", filename);
                 return LB_STATUS_ERROR_IO;
         }
 
-       LOGD("Flush data to a file (%s)\n", filename);
+       SECURE_LOGD("Flush data to a file (%s)\n", filename);
        return LB_STATUS_SUCCESS;
 }
 
@@ -148,7 +148,7 @@ static void del_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
        if (!info)
                return;
 
-       LOGD("Delete object (%s)\n", info->id);
+       SECURE_LOGD("Delete object (%s)\n", info->id);
 
        if (info->flush_cb) {
                info->flush_cb(obj, info->id, LB_STATUS_ERROR_CANCEL, info->data);
@@ -273,7 +273,7 @@ static Eina_Bool snapshot_cb(void *data)
 
                ecore_evas_geometry_get(ee, NULL, NULL, &w, &h);
 
-               LOGD("Flush size: %dx%d\n", w, h);
+               SECURE_LOGD("Flush size: %dx%d\n", w, h);
                status = flush_to_file(canvas, info->id, w, h);
 
                flush_cb(snapshot_win, info->id, status, info->data);
@@ -377,7 +377,7 @@ static void resize_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
        ecore_evas_geometry_get(ee, NULL, NULL, &w, &h);
        evas_object_geometry_get(obj, NULL, NULL, &ow, &oh);
        if (ow == w && oh == h) {
-               LOGD("Size is not changed: %dx%d\n", w, h);
+               SECURE_LOGD("Size is not changed: %dx%d\n", w, h);
                return;
        }
 
@@ -386,7 +386,7 @@ static void resize_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
         * Try to resize the canvas too.
         */
        ecore_evas_resize(ee, w, h);
-       LOGD("Canvas is resized to %dx%d\n", w, h);
+       SECURE_LOGD("Canvas is resized to %dx%d\n", w, h);
 }
 
 
@@ -437,7 +437,7 @@ PUBLIC Evas_Object *livebox_snapshot_window_add(const char *id, int size_type)
                return NULL;
        }
 
-       LOGD("Add new window %dx%d\n", w, h);
+       SECURE_LOGD("Add new window %dx%d\n", w, h);
        evas_object_event_callback_add(snapshot_win, EVAS_CALLBACK_DEL, del_cb, NULL);
        evas_object_event_callback_add(snapshot_win, EVAS_CALLBACK_RESIZE, resize_cb, NULL);
        evas_object_resize(snapshot_win, w, h);
index 2939295..58b92b9 100644 (file)
@@ -258,7 +258,7 @@ static void resize_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
                return;
 
        evas_object_geometry_get(obj, NULL, NULL, &info->width, &info->height);
-       LOGD("Resize to %dx%d\n", info->width, info->height);
+       SECURE_LOGD("Resize to %dx%d\n", info->width, info->height);
        /*!
         * Box(parent object) is resized.
         * Try to resize the canvas too.