Changeset 152 for uKadecot/trunk/ecnl_ssp/echonet_task.c
- Timestamp:
- Jan 14, 2016, 1:17:21 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uKadecot/trunk/ecnl_ssp/echonet_task.c
r125 r152 141 141 } 142 142 #ifdef ECN_DBG_PUT_ENA 143 ECN_DBG_PUT "psnd_dtq(%d, 0x%08X-0x%08X)", mbxid, (intptr_t)msg, a_fbs_sub1 ECN_DBG_END;143 ECN_DBG_PUT("psnd_dtq(%d, 0x%08X-0x%08X)", mbxid, (intptr_t)msg, a_fbs_sub1); 144 144 _ecn_dbg_bindmp((const uint8_t *)msg, 256); 145 145 #endif 146 146 a_ret = psnd_dtq(mbxid, msg); 147 147 #ifdef ECN_DBG_PUT_ENA 148 ECN_DBG_PUT "psnd_dtq(%d, 0x%08X-0x%08X) result = %d:%s", mbxid, (intptr_t)msg, a_fbs_sub1, a_ret, itron_strerror(a_ret) ECN_DBG_END;148 ECN_DBG_PUT("psnd_dtq(%d, 0x%08X-0x%08X) result = %d:%s", mbxid, (intptr_t)msg, a_fbs_sub1, a_ret, itron_strerror(a_ret)); 149 149 #endif 150 150 return a_ret; … … 193 193 return; 194 194 195 /* ECN_DBG_PUT "[ECHONET MainTask:%d] started", tskid ECN_DBG_END; */195 /* ECN_DBG_PUT("[ECHONET MainTask:%d] started", tskid); */ 196 196 syslog(LOG_NOTICE, "[ECHONET MainTask] started"); 197 197 … … 225 225 a_ret = sta_cyc(ecn_svc_cychdrid); 226 226 if (a_ret != E_OK) { 227 ECN_DBG_PUT "sta_cyc() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;227 ECN_DBG_PUT("sta_cyc() result = %d:%s", a_ret, itron_strerror(a_ret)); 228 228 PT_EXIT(&s.pt); 229 229 } … … 233 233 a_ret2 = get_tim(&a_now); 234 234 if (a_ret2 != E_OK) { 235 ECN_DBG_PUT "get_tim() result = %d:%s", a_ret2, itron_strerror(a_ret2) ECN_DBG_END;235 ECN_DBG_PUT("get_tim() result = %d:%s", a_ret2, itron_strerror(a_ret2)); 236 236 PT_EXIT(&s.pt); 237 237 } … … 256 256 || ((a_ret = timer_expired(&s.timer) ? E_TMOUT : E_WBLK) == E_TMOUT))); 257 257 if ((a_ret != E_OK) && (a_ret != E_TMOUT)) { 258 ECN_DBG_PUT "trcv_dtq() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;258 ECN_DBG_PUT("trcv_dtq() result = %d:%s", a_ret, itron_strerror(a_ret)); 259 259 PT_EXIT(&s.pt); 260 260 } … … 262 262 a_ret2 = get_tim(&a_now); 263 263 if (a_ret2 != E_OK) { 264 ECN_DBG_PUT "get_tim() result = %d:%s", a_ret2, itron_strerror(a_ret2) ECN_DBG_END;264 ECN_DBG_PUT("get_tim() result = %d:%s", a_ret2, itron_strerror(a_ret2)); 265 265 PT_EXIT(&s.pt); 266 266 } … … 273 273 274 274 if (a_ret == E_OK) { 275 ECN_DBG_PUT "trcv_dtq() mbx recv (%d byte)", _ecn_fbs_get_datalen(a_mdt.fbs_id) ECN_DBG_END;275 ECN_DBG_PUT("trcv_dtq() mbx recv (%d byte)", _ecn_fbs_get_datalen(a_mdt.fbs_id)); 276 276 g_release_esv = true; 277 277 … … 376 376 a_ret = _ecn_fbs_cre(a_size, &a_fbs_id); 377 377 if (a_ret != E_OK || !a_fbs_id.ptr) { /* 確保失敗 */ 378 ECN_DBG_PUT 378 ECN_DBG_PUT("_ecn_fbs_cre(%d) result = %d:%s", 379 379 a_size, 380 a_ret, itron_strerror(a_ret) ECN_DBG_END;380 a_ret, itron_strerror(a_ret)); 381 381 return E_NOMEM; 382 382 } … … 396 396 a_ret = _ecn_fbs_add_data_ex(a_fbs_id, &a_ecn_hdp, a_size); 397 397 if (a_ret) { 398 ECN_DBG_PUT 398 ECN_DBG_PUT("_ecn_fbs_add_data_ex(*, ecn_hdp{esv:0x%02X,epc:0x%02X}, %d) result = %d:%s", 399 399 a_ecn_hdp.edata.esv, a_ecn_hdp.ecn_prp.epc, a_size, 400 a_ret, itron_strerror(a_ret) ECN_DBG_END;400 a_ret, itron_strerror(a_ret)); 401 401 goto lb_except; 402 402 } … … 405 405 a_ret = _ecn_fbs_add_data_ex(a_fbs_id, p_edt, fa_pdc); 406 406 if (a_ret) { 407 ECN_DBG_PUT 407 ECN_DBG_PUT("_ecn_fbs_add_data_ex(*, ecn_hdp{esv:0x%02X,epc:0x%02X} edt, %d) result = %d:%s", 408 408 a_ecn_hdp.edata.esv, a_ecn_hdp.ecn_prp.epc, fa_pdc, 409 a_ret, itron_strerror(a_ret) ECN_DBG_END;409 a_ret, itron_strerror(a_ret)); 410 410 goto lb_except; 411 411 } 412 412 } 413 413 if (fa_deoj == 0) { 414 ECN_DBG_PUT "%s", "マルチキャスト" ECN_DBG_END;414 ECN_DBG_PUT("%s", "マルチキャスト"); 415 415 /* fa_deoj == 0 : マルチキャスト */ 416 416 ((T_EDATA *)a_fbs_id.ptr)->hdr.edata.deoj.eojx1 = EOJ_X1_PROFILE; … … 420 420 } 421 421 else if (fa_deoj <= tmax_eobjid) { 422 ECN_DBG_PUT "fa_deoj = %d", fa_deoj ECN_DBG_END;422 ECN_DBG_PUT("fa_deoj = %d", fa_deoj); 423 423 /* if (fa_deoj < 1 || tmax_eobjid < fa_deoj) …の異常系は関数冒頭で除外済みとする */ 424 424 a_eobj = &eobjinib_table[fa_deoj - 1]; … … 446 446 if (a_fbs_id.ptr->hdr.target == ENOD_NOT_MATCH_ID) { 447 447 goto lb_except; 448 ECN_DBG_PUT 448 ECN_DBG_PUT("deoj = %02X %02X %02x : enod not match", 449 449 ((T_EDATA *)a_fbs_id.ptr)->hdr.edata.deoj.eojx1, 450 450 ((T_EDATA *)a_fbs_id.ptr)->hdr.edata.deoj.eojx2, 451 ((T_EDATA *)a_fbs_id.ptr)->hdr.edata.deoj.eojx3 ECN_DBG_END;451 ((T_EDATA *)a_fbs_id.ptr)->hdr.edata.deoj.eojx3); 452 452 } 453 453 #ifdef ECN_DBG_PUT_ENA 454 454 else { 455 ECN_DBG_PUT 455 ECN_DBG_PUT("deoj = %02X %02X %02x : %s", 456 456 ((T_EDATA *)a_fbs_id.ptr)->hdr.edata.deoj.eojx1, 457 457 ((T_EDATA *)a_fbs_id.ptr)->hdr.edata.deoj.eojx2, 458 458 ((T_EDATA *)a_fbs_id.ptr)->hdr.edata.deoj.eojx3, 459 _ecn_dbg_enod2str(a_fbs_id.ptr->hdr.target) ECN_DBG_END;459 _ecn_dbg_enod2str(a_fbs_id.ptr->hdr.target)); 460 460 } 461 461 #endif … … 465 465 T_ECN_EOJ eoj; 466 466 ECN_ENOD_ID enodid; 467 ECN_DBG_PUT "fa_deoj = %d", fa_deoj ECN_DBG_END;467 ECN_DBG_PUT("fa_deoj = %d", fa_deoj); 468 468 /* オブジェクトIDからEOJとノードIDを取得 */ 469 469 if(ecn_agent_get_eoj_enodid(fa_deoj, &eoj, &enodid)){ … … 474 474 else { 475 475 goto lb_except; 476 ECN_DBG_PUT 476 ECN_DBG_PUT("deoj = %02X %02X %02x : enod not match", 477 477 ((T_EDATA *)a_fbs_id.ptr)->hdr.edata.deoj.eojx1, 478 478 ((T_EDATA *)a_fbs_id.ptr)->hdr.edata.deoj.eojx2, 479 ((T_EDATA *)a_fbs_id.ptr)->hdr.edata.deoj.eojx3 ECN_DBG_END;479 ((T_EDATA *)a_fbs_id.ptr)->hdr.edata.deoj.eojx3); 480 480 } 481 481 #ifdef ECN_DBG_PUT_ENA 482 482 else { 483 ECN_DBG_PUT 483 ECN_DBG_PUT("deoj = %02X %02X %02x : %s", 484 484 ((T_EDATA *)a_fbs_id.ptr)->hdr.edata.deoj.eojx1, 485 485 ((T_EDATA *)a_fbs_id.ptr)->hdr.edata.deoj.eojx2, 486 486 ((T_EDATA *)a_fbs_id.ptr)->hdr.edata.deoj.eojx3, 487 _ecn_dbg_enod2str(a_fbs_id.ptr->hdr.target) ECN_DBG_END;487 _ecn_dbg_enod2str(a_fbs_id.ptr->hdr.target)); 488 488 } 489 489 #endif … … 529 529 switch (a_im.command) { 530 530 case ECN_INM_NOTIFY_INSTANCELIST: 531 ECN_DBG_PUT "do _ecn_tsk_int_startup()" ECN_DBG_END;531 ECN_DBG_PUT("do _ecn_tsk_int_startup()"); 532 532 _ecn_tsk_int_startup(fa_exinf); 533 533 break; … … 537 537 break; 538 538 #endif 539 ECN_DBG_PUT "recv: unefined internal-msg: %d", a_im.command ECN_DBG_END;539 ECN_DBG_PUT("recv: unefined internal-msg: %d", a_im.command); 540 540 break; 541 541 } … … 578 578 const EOBJINIB *eobj; 579 579 580 ECN_DBG_PUT "do _ecn_tsk_ntf_inl()" ECN_DBG_END;580 ECN_DBG_PUT("do _ecn_tsk_ntf_inl()"); 581 581 582 582 memset(&a_hdr, 0, sizeof(a_hdr)); … … 830 830 g_release_esv = false; 831 831 832 ECN_CAP_PUT 833 p_esv->edata.esv ECN_CAP_END;832 ECN_CAP_PUT("redirect ecn_svc_mailboxid → ecn_api_mailboxid (esv:0x%02X)", 833 p_esv->edata.esv); 834 834 fa_fbs_id.ptr->hdr.target = ENOD_API_ID; 835 835 a_ret = psnd_dtq(ecn_api_mailboxid, (intptr_t)fa_fbs_id.ptr); … … 858 858 case ESV_SET_I: 859 859 if (!p_obj) { 860 ECN_DBG_PUT 861 p_esv->edata.deoj.eojx1 << 16 | p_esv->edata.deoj.eojx2 << 8 | p_esv->edata.deoj.eojx3 ECN_DBG_END;860 ECN_DBG_PUT("_ecn_tsk_ecn_msg_main() eoj %06X not found.", 861 p_esv->edata.deoj.eojx1 << 16 | p_esv->edata.deoj.eojx2 << 8 | p_esv->edata.deoj.eojx3); 862 862 result = -1; 863 863 break; … … 870 870 case ESV_SET_C: 871 871 if (!p_obj) { 872 ECN_DBG_PUT 873 p_esv->edata.deoj.eojx1 << 16 | p_esv->edata.deoj.eojx2 << 8 | p_esv->edata.deoj.eojx3 ECN_DBG_END;872 ECN_DBG_PUT("_ecn_tsk_ecn_msg_main() eoj %06X not found.", 873 p_esv->edata.deoj.eojx1 << 16 | p_esv->edata.deoj.eojx2 << 8 | p_esv->edata.deoj.eojx3); 874 874 result = -1; 875 875 break; … … 882 882 case ESV_GET: 883 883 if (!p_obj) { 884 ECN_DBG_PUT 885 p_esv->edata.deoj.eojx1 << 16 | p_esv->edata.deoj.eojx2 << 8 | p_esv->edata.deoj.eojx3 ECN_DBG_END;884 ECN_DBG_PUT("_ecn_tsk_ecn_msg_main() eoj %06X not found.", 885 p_esv->edata.deoj.eojx1 << 16 | p_esv->edata.deoj.eojx2 << 8 | p_esv->edata.deoj.eojx3); 886 886 result = -1; 887 887 break; … … 894 894 case ESV_INF_REQ: 895 895 if (!p_obj) { 896 ECN_DBG_PUT 897 p_esv->edata.deoj.eojx1 << 16 | p_esv->edata.deoj.eojx2 << 8 | p_esv->edata.deoj.eojx3 ECN_DBG_END;896 ECN_DBG_PUT("_ecn_tsk_ecn_msg_main() eoj %06X not found.", 897 p_esv->edata.deoj.eojx1 << 16 | p_esv->edata.deoj.eojx2 << 8 | p_esv->edata.deoj.eojx3); 898 898 result = -1; 899 899 break; … … 907 907 case ESV_SET_GET: 908 908 if (!p_obj) { 909 ECN_DBG_PUT 910 p_esv->edata.deoj.eojx1 << 16 | p_esv->edata.deoj.eojx2 << 8 | p_esv->edata.deoj.eojx3 ECN_DBG_END;909 ECN_DBG_PUT("_ecn_tsk_ecn_msg_main() eoj %06X not found.", 910 p_esv->edata.deoj.eojx1 << 16 | p_esv->edata.deoj.eojx2 << 8 | p_esv->edata.deoj.eojx3); 911 911 result = -1; 912 912 break; … … 942 942 case ESV_GET_SNA: /* 0x52 プロパティ値読み出し不可応答 */ 943 943 if (!p_sobj) { 944 ECN_DBG_PUT 945 p_esv->edata.seoj.eojx1 << 16 | p_esv->edata.seoj.eojx2 << 8 | p_esv->edata.seoj.eojx3 ECN_DBG_END;944 ECN_DBG_PUT("_ecn_tsk_ecn_msg_main() eoj %06X not found.", 945 p_esv->edata.seoj.eojx1 << 16 | p_esv->edata.seoj.eojx2 << 8 | p_esv->edata.seoj.eojx3); 946 946 result = -1; 947 947 break; … … 955 955 case ESV_INF_SNA: /* 0x53 プロパティ値通知不可応答 */ 956 956 if (!p_sobj) { 957 ECN_DBG_PUT 958 p_esv->edata.seoj.eojx1 << 16 | p_esv->edata.seoj.eojx2 << 8 | p_esv->edata.seoj.eojx3 ECN_DBG_END;957 ECN_DBG_PUT("_ecn_tsk_ecn_msg_main() eoj %06X not found.", 958 p_esv->edata.seoj.eojx1 << 16 | p_esv->edata.seoj.eojx2 << 8 | p_esv->edata.seoj.eojx3); 959 959 result = -1; 960 960 break; … … 968 968 case ESV_SET_GET_SNA: /* 0x5E プロパティ値書き込み・読み出し不可応答 */ 969 969 if (!p_sobj) { 970 ECN_DBG_PUT 971 p_esv->edata.seoj.eojx1 << 16 | p_esv->edata.seoj.eojx2 << 8 | p_esv->edata.seoj.eojx3 ECN_DBG_END;970 ECN_DBG_PUT("_ecn_tsk_ecn_msg_main() eoj %06X not found.", 971 p_esv->edata.seoj.eojx1 << 16 | p_esv->edata.seoj.eojx2 << 8 | p_esv->edata.seoj.eojx3); 972 972 result = -1; 973 973 break; … … 1004 1004 ECN_FBS_ID fa_fbs_id) 1005 1005 { 1006 ECN_DBG_PUT 1006 ECN_DBG_PUT("%s() %s eoj src:%06X dest:%06X", 1007 1007 fp_fncnm, fp_varnm, 1008 1008 ((T_EDATA *)fa_fbs_id.ptr)->hdr.edata.seoj.eojx1 << 16 | ((T_EDATA *)fa_fbs_id.ptr)->hdr.edata.seoj.eojx2 << 8 | ((T_EDATA *)fa_fbs_id.ptr)->hdr.edata.seoj.eojx3, 1009 ((T_EDATA *)fa_fbs_id.ptr)->hdr.edata.deoj.eojx1 << 16 | ((T_EDATA *)fa_fbs_id.ptr)->hdr.edata.deoj.eojx2 << 8 | ((T_EDATA *)fa_fbs_id.ptr)->hdr.edata.deoj.eojx3 ECN_DBG_END;1009 ((T_EDATA *)fa_fbs_id.ptr)->hdr.edata.deoj.eojx1 << 16 | ((T_EDATA *)fa_fbs_id.ptr)->hdr.edata.deoj.eojx2 << 8 | ((T_EDATA *)fa_fbs_id.ptr)->hdr.edata.deoj.eojx3); 1010 1010 } 1011 1011 #else … … 1029 1029 return p; 1030 1030 } 1031 ECN_DBG_PUT 1031 ECN_DBG_PUT("_ecn_tsk_eoj_get_property(0x%02X-0x%02X-0x%02X, epc:0x%02X) not found.", 1032 1032 fp_obj->eojx1, fp_obj->eojx2, fp_obj->eojx3, 1033 fa_epc ECN_DBG_END;1033 fa_epc); 1034 1034 1035 1035 return NULL; … … 1044 1044 return -1; 1045 1045 1046 ECN_DBG_PUT 1047 fp_prp->eprpcd ECN_DBG_END;1046 ECN_DBG_PUT("_ecn_tsk_eoj_set_edt(epc:0x%02X) call eprpset()", 1047 fp_prp->eprpcd); 1048 1048 1049 1049 return fp_prp->eprpset(fp_prp, fp_src, fa_srcsz, fa_anno); … … 1058 1058 return -1; 1059 1059 1060 ECN_DBG_PUT 1061 fp_prp->eprpcd ECN_DBG_END;1060 ECN_DBG_PUT("_ecn_tsk_eoj_get_edt(epc:0x%02X) call eprpget()", 1061 fp_prp->eprpcd); 1062 1062 1063 1063 return fp_prp->eprpget(fp_prp, fp_dst, fp_prp->eprpsz); … … 1090 1090 p_blk = (T_ECN_SUB_BLK *)_ecn_fbs_mbx_get(sizeof(*p_blk)); 1091 1091 if (!p_blk) { 1092 ECN_DBG_PUT "_ecn_fbs_mbx_get() fault." ECN_DBG_END;1092 ECN_DBG_PUT("_ecn_fbs_mbx_get() fault."); 1093 1093 return 0; /* メモリ不足 */ 1094 1094 } … … 1100 1100 a_ret = _ecn_fbs_get_data(fa_fbs_id, fp_prp, sizeof(*fp_prp), &a_size); 1101 1101 if (a_ret || a_size < (int)sizeof(*fp_prp)) { 1102 ECN_DBG_PUT "_ecn_fbs_get_data() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1102 ECN_DBG_PUT("_ecn_fbs_get_data() result = %d:%s", a_ret, itron_strerror(a_ret)); 1103 1103 goto lb_except; 1104 1104 } … … 1109 1109 a_ret = _ecn_fbs_get_data(fa_fbs_id, p_blk, fp_prp->pdc, &a_size); 1110 1110 if (a_ret || a_size < (int)fp_prp->pdc) { 1111 ECN_DBG_PUT "_ecn_fbs_get_data() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1111 ECN_DBG_PUT("_ecn_fbs_get_data() result = %d:%s", a_ret, itron_strerror(a_ret)); 1112 1112 goto lb_except; 1113 1113 } … … 1146 1146 p_edt = _ecn_tsk_get_prp_pce(fa_fbs_id, &a_prp, p_edt); 1147 1147 if (!p_edt) { 1148 ECN_DBG_PUT "_ecn_tsk_eoj_set_main(): _ecn_tsk_get_prp_pce() fault." ECN_DBG_END;1148 ECN_DBG_PUT("_ecn_tsk_eoj_set_main(): _ecn_tsk_get_prp_pce() fault."); 1149 1149 goto lb_except; 1150 1150 } … … 1166 1166 } 1167 1167 if (a_ans == a_size) { 1168 ECN_DBG_PUT 1168 ECN_DBG_PUT("_ecn_tsk_eoj_set_edt(0x%06X, 0x%02x, 0x%02X..., %u) ok.", 1169 1169 fp_obj->eojx1 << 16 | fp_obj->eojx2 << 8 | fp_obj->eojx3, 1170 a_prp.epc, p_edt->payload[0], a_size ECN_DBG_END;1170 a_prp.epc, p_edt->payload[0], a_size); 1171 1171 a_prp.pdc = 0; 1172 1172 } else { 1173 ECN_DBG_PUT 1173 ECN_DBG_PUT("_ecn_tsk_eoj_set_edt(0x%06X, 0x%02x, 0x%02X..., %u) fault.", 1174 1174 fp_obj->eojx1 << 16 | fp_obj->eojx2 << 8 | fp_obj->eojx3, 1175 a_prp.epc, p_edt->payload[0], a_size ECN_DBG_END;1175 a_prp.epc, p_edt->payload[0], a_size); 1176 1176 *p_sw_ok = 0; /* プロパティ設定失敗 */ 1177 1177 /* 応答処理の場合EDTは設定しない */ … … 1183 1183 a_ret = _ecn_fbs_add_data_ex(a_fbs_res, &a_prp, sizeof(a_prp)); 1184 1184 if (a_ret) { 1185 ECN_DBG_PUT "_ecn_fbs_add_data_ex() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1185 ECN_DBG_PUT("_ecn_fbs_add_data_ex() result = %d:%s", a_ret, itron_strerror(a_ret)); 1186 1186 goto lb_except; 1187 1187 } … … 1191 1191 a_ret = _ecn_fbs_add_data_ex(a_fbs_res, p_edt->payload, a_prp.pdc); 1192 1192 if (a_ret) { 1193 ECN_DBG_PUT "_ecn_fbs_add_data_ex() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1193 ECN_DBG_PUT("_ecn_fbs_add_data_ex() result = %d:%s", a_ret, itron_strerror(a_ret)); 1194 1194 goto lb_except; 1195 1195 } … … 1240 1240 p_prp_buf = _ecn_fbs_mbx_get(ECHONET_MEMPOOL_BLOCK_SIZE); 1241 1241 if (!p_prp_buf) { 1242 ECN_DBG_PUT "_ecn_fbs_mbx_get() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1242 ECN_DBG_PUT("_ecn_fbs_mbx_get() result = %d:%s", a_ret, itron_strerror(a_ret)); 1243 1243 goto lb_except; /* メモリ不足 */ 1244 1244 } … … 1248 1248 p_edt = _ecn_tsk_get_prp_pce(fa_fbs_id, &a_prp, p_edt); 1249 1249 if (!p_edt) { 1250 ECN_DBG_PUT "_ecn_tsk_eoj_get_main(): _ecn_tsk_get_prp_pce() fault." ECN_DBG_END;1250 ECN_DBG_PUT("_ecn_tsk_eoj_get_main(): _ecn_tsk_get_prp_pce() fault."); 1251 1251 goto lb_except; 1252 1252 } … … 1273 1273 a_ret = _ecn_fbs_add_data_ex(a_fbs_res, &a_prp, sizeof(a_prp)); 1274 1274 if (a_ret) { 1275 ECN_DBG_PUT "_ecn_fbs_add_data_ex() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1275 ECN_DBG_PUT("_ecn_fbs_add_data_ex() result = %d:%s", a_ret, itron_strerror(a_ret)); 1276 1276 goto lb_except; 1277 1277 } … … 1280 1280 a_ret = _ecn_fbs_add_data_ex(a_fbs_res, p_prp_buf, a_ans); 1281 1281 if (a_ret) { 1282 ECN_DBG_PUT "_ecn_fbs_add_data_ex() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1282 ECN_DBG_PUT("_ecn_fbs_add_data_ex() result = %d:%s", a_ret, itron_strerror(a_ret)); 1283 1283 goto lb_except; 1284 1284 } … … 1319 1319 p_prp_buf = _ecn_fbs_mbx_get(ECHONET_MEMPOOL_BLOCK_SIZE); 1320 1320 if (!p_prp_buf) { 1321 ECN_DBG_PUT "_ecn_fbs_mbx_get() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1321 ECN_DBG_PUT("_ecn_fbs_mbx_get() result = %d:%s", a_ret, itron_strerror(a_ret)); 1322 1322 goto lb_except; /* メモリ不足 */ 1323 1323 } … … 1327 1327 p_edt = _ecn_tsk_get_prp_pce(fa_fbs_id, &a_prp, p_edt); 1328 1328 if (!p_edt) { 1329 ECN_DBG_PUT "_ecn_tsk_eoj_get_main(): _ecn_tsk_get_prp_pce() fault." ECN_DBG_END;1329 ECN_DBG_PUT("_ecn_tsk_eoj_get_main(): _ecn_tsk_get_prp_pce() fault."); 1330 1330 goto lb_except; 1331 1331 } … … 1336 1336 a_ret = _ecn_fbs_add_data_ex(a_fbs_res, &a_prp, sizeof(a_prp)); 1337 1337 if (a_ret) { 1338 ECN_DBG_PUT "_ecn_fbs_add_data_ex() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1338 ECN_DBG_PUT("_ecn_fbs_add_data_ex() result = %d:%s", a_ret, itron_strerror(a_ret)); 1339 1339 goto lb_except; 1340 1340 } … … 1374 1374 a_ret = _ecn_fbs_get_data(fa_fbs_id, &a_prp, sizeof(a_prp), &a_size); 1375 1375 if (a_ret || a_size < (int)sizeof(a_prp)) { 1376 ECN_DBG_PUT "_ecn_fbs_get_data() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1376 ECN_DBG_PUT("_ecn_fbs_get_data() result = %d:%s", a_ret, itron_strerror(a_ret)); 1377 1377 goto lb_except; 1378 1378 } … … 1381 1381 a_ret = _ecn_fbs_seek_rpos(fa_fbs_id, a_prp.pdc); 1382 1382 if (a_ret) { 1383 ECN_DBG_PUT "_ecn_fbs_seek_rpos() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1383 ECN_DBG_PUT("_ecn_fbs_seek_rpos() result = %d:%s", a_ret, itron_strerror(a_ret)); 1384 1384 goto lb_except; 1385 1385 } … … 1543 1543 a_ret = _ecn_fbs_cre(a_size, &a_fbs_res); 1544 1544 if (a_ret != E_OK || !a_fbs_res.ptr) { /* 確保失敗 */ 1545 ECN_DBG_PUT "_ecn_fbs_cre() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1545 ECN_DBG_PUT("_ecn_fbs_cre() result = %d:%s", a_ret, itron_strerror(a_ret)); 1546 1546 goto lb_finally; 1547 1547 } … … 1559 1559 sizeof(a_ecn_hdp.ecn_hdr) + sizeof(a_ecn_hdp.edata)); 1560 1560 if (a_ret) { 1561 ECN_DBG_PUT "_ecn_fbs_add_data_ex() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1561 ECN_DBG_PUT("_ecn_fbs_add_data_ex() result = %d:%s", a_ret, itron_strerror(a_ret)); 1562 1562 goto lb_except; 1563 1563 } … … 1566 1566 a_ret = _ecn_fbs_set_rpos(fa_fbs_id, offsetof(T_ECN_EDT_HDR, ecn_prp)); 1567 1567 if (a_ret) { 1568 ECN_DBG_PUT "_ecn_fbs_set_rpos() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1568 ECN_DBG_PUT("_ecn_fbs_set_rpos() result = %d:%s", a_ret, itron_strerror(a_ret)); 1569 1569 goto lb_except; 1570 1570 } … … 1577 1577 ((T_EDATA *)fa_fbs_id.ptr)->hdr.edata.opc, &a_sw_ok); 1578 1578 if (a_ret) { 1579 ECN_DBG_PUT "_ecn_tsk_eoj_get_main() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1579 ECN_DBG_PUT("_ecn_tsk_eoj_get_main() result = %d:%s", a_ret, itron_strerror(a_ret)); 1580 1580 goto lb_except; 1581 1581 } … … 1601 1601 a_ret = _ecn_tsk_snd_mbx(a_fbs_res, false); 1602 1602 if (a_ret != E_OK) { 1603 ECN_DBG_PUT "_ecn_tsk_snd_mbx() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1603 ECN_DBG_PUT("_ecn_tsk_snd_mbx() result = %d:%s", a_ret, itron_strerror(a_ret)); 1604 1604 goto lb_except; 1605 1605 } … … 1634 1634 a_ret = _ecn_fbs_cre(a_size, &a_fbs_res); 1635 1635 if (a_ret != E_OK || !a_fbs_res.ptr) { /* 確保失敗 */ 1636 ECN_DBG_PUT "_ecn_fbs_cre() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1636 ECN_DBG_PUT("_ecn_fbs_cre() result = %d:%s", a_ret, itron_strerror(a_ret)); 1637 1637 goto lb_finally; 1638 1638 } … … 1647 1647 sizeof(a_ecn_hdp.ecn_hdr) + sizeof(a_ecn_hdp.edata)); 1648 1648 if (a_ret) { 1649 ECN_DBG_PUT "_ecn_fbs_add_data_ex() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1649 ECN_DBG_PUT("_ecn_fbs_add_data_ex() result = %d:%s", a_ret, itron_strerror(a_ret)); 1650 1650 goto lb_except; 1651 1651 } … … 1654 1654 a_ret = _ecn_fbs_set_rpos(fa_fbs_id, offsetof(T_ECN_EDT_HDR, ecn_prp)); 1655 1655 if (a_ret) { 1656 ECN_DBG_PUT "_ecn_fbs_set_rpos() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1656 ECN_DBG_PUT("_ecn_fbs_set_rpos() result = %d:%s", a_ret, itron_strerror(a_ret)); 1657 1657 goto lb_except; 1658 1658 } … … 1665 1665 ((T_EDATA *)fa_fbs_id.ptr)->hdr.edata.opc, &a_sw_ok); 1666 1666 if (a_ret) { 1667 ECN_DBG_PUT "_ecn_tsk_eoj_res_main() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1667 ECN_DBG_PUT("_ecn_tsk_eoj_res_main() result = %d:%s", a_ret, itron_strerror(a_ret)); 1668 1668 goto lb_except; 1669 1669 } … … 1689 1689 a_ret = _ecn_tsk_snd_mbx(a_fbs_res, false); 1690 1690 if (a_ret != E_OK) { 1691 ECN_DBG_PUT "_ecn_tsk_snd_mbx() result = %d:%s", a_ret, itron_strerror(a_ret) ECN_DBG_END;1691 ECN_DBG_PUT("_ecn_tsk_snd_mbx() result = %d:%s", a_ret, itron_strerror(a_ret)); 1692 1692 goto lb_except; 1693 1693 } … … 1718 1718 memset(&a_ecn_hdp, 0, sizeof(a_ecn_hdp)); 1719 1719 1720 ECN_DBG_PUT 1721 fp_obj->eojx1 << 16 | fp_obj->eojx2 << 8 | fp_obj->eojx3 ECN_DBG_END;1720 ECN_DBG_PUT("_ecn_tsk_eoj_set_get() eoj:%06X", 1721 fp_obj->eojx1 << 16 | fp_obj->eojx2 << 8 | fp_obj->eojx3); 1722 1722 1723 1723 /* 初期取得サイズ */ … … 1761 1761 goto lb_except; 1762 1762 } 1763 ECN_DBG_PUT 1763 ECN_DBG_PUT("_ecn_tsk_eoj_set_get() eoj:%06X _ecn_tsk_eoj_set_main() ok sw_ok:%s", 1764 1764 fp_obj->eojx1 << 16 | fp_obj->eojx2 << 8 | fp_obj->eojx3, 1765 (a_sw_ok ? "true" : "false") ECN_DBG_END;1765 (a_sw_ok ? "true" : "false")); 1766 1766 1767 1767 /* 次の件数を読み取る(1byte) */ … … 1794 1794 goto lb_except; 1795 1795 } 1796 ECN_DBG_PUT 1796 ECN_DBG_PUT("_ecn_tsk_eoj_set_get() eoj:%06X _ecn_tsk_eoj_get_main() ok sw_ok:%s", 1797 1797 fp_obj->eojx1 << 16 | fp_obj->eojx2 << 8 | fp_obj->eojx3, 1798 (a_sw_ok ? "true" : "false") ECN_DBG_END;1798 (a_sw_ok ? "true" : "false")); 1799 1799 1800 1800 /* プロパティ読み込み件数書き込み時のヘッド情報で、読み出し件数を記録 */ … … 1839 1839 memset(&a_ecn_hdp, 0, sizeof(a_ecn_hdp)); 1840 1840 1841 ECN_DBG_PUT 1842 fp_obj->eojx1 << 16 | fp_obj->eojx2 << 8 | fp_obj->eojx3 ECN_DBG_END;1841 ECN_DBG_PUT("_ecn_tsk_eoj_set_get_res() eoj:%06X", 1842 fp_obj->eojx1 << 16 | fp_obj->eojx2 << 8 | fp_obj->eojx3); 1843 1843 1844 1844 /* 初期取得サイズ */ … … 1867 1867 goto lb_except; 1868 1868 } 1869 ECN_DBG_PUT 1869 ECN_DBG_PUT("_ecn_tsk_eoj_set_get_res() eoj:%06X _ecn_tsk_eoj_set_main() ok sw_ok:%s", 1870 1870 fp_obj->eojx1 << 16 | fp_obj->eojx2 << 8 | fp_obj->eojx3, 1871 (a_sw_ok ? "true" : "false") ECN_DBG_END;1871 (a_sw_ok ? "true" : "false")); 1872 1872 1873 1873 /* 次の件数を読み取る(1byte) */ … … 1888 1888 goto lb_except; 1889 1889 } 1890 ECN_DBG_PUT 1890 ECN_DBG_PUT("_ecn_tsk_eoj_set_get_res() eoj:%06X _ecn_tsk_eoj_get_main() ok sw_ok:%s", 1891 1891 fp_obj->eojx1 << 16 | fp_obj->eojx2 << 8 | fp_obj->eojx3, 1892 (a_sw_ok ? "true" : "false") ECN_DBG_END;1892 (a_sw_ok ? "true" : "false")); 1893 1893 1894 1894 goto lb_finally; … … 1964 1964 ret = _ecn_fbs_cre(1, &req); 1965 1965 if (ret != E_OK) { 1966 ECN_DBG_PUT "_ecn_tsk_cre_req_fbs() : _ecn_fbs_cre() result = %d:%s", ret, itron_strerror(ret) ECN_DBG_END;1966 ECN_DBG_PUT("_ecn_tsk_cre_req_fbs() : _ecn_fbs_cre() result = %d:%s", ret, itron_strerror(ret)); 1967 1967 return ret; 1968 1968 } … … 1971 1971 if (ret != E_OK) { 1972 1972 _ecn_fbs_del(req); 1973 ECN_DBG_PUT "_ecn_tsk_cre_req_fbs() : _ecn_fbs_add_data() result = %d:%s", ret, itron_strerror(ret) ECN_DBG_END;1973 ECN_DBG_PUT("_ecn_tsk_cre_req_fbs() : _ecn_fbs_add_data() result = %d:%s", ret, itron_strerror(ret)); 1974 1974 return ret; 1975 1975 } … … 1993 1993 ret = _ecn_fbs_cre(1, &res); 1994 1994 if (ret != E_OK) { 1995 ECN_DBG_PUT "_ecn_tsk_cre_res_fbs() : _ecn_fbs_cre() result = %d:%s", ret, itron_strerror(ret) ECN_DBG_END;1995 ECN_DBG_PUT("_ecn_tsk_cre_res_fbs() : _ecn_fbs_cre() result = %d:%s", ret, itron_strerror(ret)); 1996 1996 return ret; 1997 1997 } … … 2000 2000 if (ret != E_OK) { 2001 2001 _ecn_fbs_del(res); 2002 ECN_DBG_PUT "_ecn_tsk_cre_res_fbs() : _ecn_fbs_add_data() result = %d:%s", ret, itron_strerror(ret) ECN_DBG_END;2002 ECN_DBG_PUT("_ecn_tsk_cre_res_fbs() : _ecn_fbs_add_data() result = %d:%s", ret, itron_strerror(ret)); 2003 2003 return ret; 2004 2004 }
Note:
See TracChangeset
for help on using the changeset viewer.