* 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)
+#if !defined(SECURE_LOGD)
+#define SECURE_LOGD LOGD
+#endif
+
+#if !defined(SECURE_LOGE)
+#define SECURE_LOGE LOGE
+#endif
+
+#if !defined(SECURE_LOGW)
+#define SECURE_LOGW LOGW
+#endif
+
+
+#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 */
#include "livebox.h"
#include "debug.h"
+#if !defined(SECURE_LOGD)
+#define SECURE_LOGD LOGD
+#endif
+
+#if !defined(SECURE_LOGE)
+#define SECURE_LOGE LOGE
+#endif
+
+#if !defined(SECURE_LOGW)
+#define SECURE_LOGW LOGW
+#endif
+
#define QUALITY_N_COMPRESS "quality=100 compress=1"
#define PUBLIC __attribute__((visibility("default")))
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;
}
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);
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);
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;
}
* 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);
}
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);
#include <livebox-service.h>
#include "livebox.h"
+#if !defined(SECURE_LOGD)
+#define SECURE_LOGD LOGD
+#endif
+
+#if !defined(SECURE_LOGE)
+#define SECURE_LOGE LOGE
+#endif
+
+#if !defined(SECURE_LOGW)
+#define SECURE_LOGW LOGW
+#endif
+
#define IS_PD 1
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.