#define retv_if(expr, val) do { \
if (expr) { \
- dlog_print(DLOG_INFO, "(%s) -> %s() return", #expr, __FUNCTION__); \
+ dlog_print(DLOG_INFO, "%s : %s(%d) > (%s) -> %s() return", rindex(__FILE__, '/') + 1, __func__, __LINE__, #expr, __FUNCTION__); \
return (val); \
} \
} while (0)
#define ret_if(expr) do { \
if (expr) { \
- dlog_print(DLOG_INFO, "(%s) -> %s() return", #expr, __FUNCTION__); \
+ dlog_print(DLOG_INFO, "%s : %s(%d) > (%s) -> %s() return", rindex(__FILE__, '/') + 1, __func__, __LINE__, #expr, __FUNCTION__); \
return; \
} \
} while (0)
#include <Ecore.h>
#include <glib.h>
-#include "devicemanagerservice.h"
#include "iot-device-manage.h"
#include "iot-device-manage-type.h"
#include "log.h"
{
char *request_json = NULL;
- request_json = g_strdup_printf("{ \"type\" : \"%d,\" \"duration\" : \"%d,\" \"period\" : \"%d\" }", 1, duration, period);
+ request_json = g_strdup_printf("{ \"type\" : %d, \"duration\" : %d, \"period\" : %d }", 1, duration, period);
return request_json;
}
static void __get_tinfo_result_cb(idm_command_h command, idm_result_e result, idm_reason_e reason, const char *detail, void *data)
{
- _D("result : %d, reason : %d, detail : %s", result, reason, detail ? detail : "None");
+ unsigned long id;
+ idm_command_get_id(command, &id);
+
+ _D("[%d] result : %d, reason : %d, detail : %s", id, result, reason, detail ? detail : "None");
if (result != IDM_RESULT_RUNNING) {
app_data *ad = data;
idm_command_free(command);
ad->command = NULL;
- unsigned long id;
- idm_command_get_id(command, &id);
if (id == 1) {
// 2. 2초 간격으로 1분간 task info 받도록 cmd 실행하고, 30초 뒤에 cmd stop 호출
__get_taskinfo(60, 2, 2, __get_tinfo_result_cb, ad);
static bool service_app_create(void *data)
{
+ _D("app create");
return true;
}
static void service_app_terminate(void *data)
{
+ _D("app terminate");
app_data *ad = data;
if (ad->command) {
static void service_app_control(app_control_h app_control, void *data)
{
+ _D("app control");
app_data *ad = data;
if (ad->command) {
{
app_data ad;
ad.timer = NULL;
+ ad.command = NULL;
service_app_lifecycle_callback_s event_callback;
event_callback.create = service_app_create;