static void control_change(enum ipmi_update_e op, ipmi_entity_t *ent, ipmi_control_t *control, void *cb_data) { zbx_ipmi_host_t *h = cb_data; zabbix_log(LOG_LEVEL_DEBUG, "In control_change()"); if (op == IPMI_ADDED) { if (NULL == get_ipmi_control(h, control)) allocate_ipmi_control(h, control); } else if (op == IPMI_DELETED) delete_ipmi_control(h, control); }
static void control_change(enum ipmi_update_e op, ipmi_entity_t *ent, ipmi_control_t *control, void *cb_data) { const char *__function_name = "control_change"; zbx_ipmi_host_t *h = cb_data; zabbix_log(LOG_LEVEL_DEBUG, "In %s() phost:%p host:'[%s]:%d'", __function_name, h, h->ip, h->port); if (IPMI_ADDED == op) { if (NULL == get_ipmi_control(h, control)) allocate_ipmi_control(h, control); } else if (IPMI_DELETED == op) { delete_ipmi_control(h, control); } zabbix_log(LOG_LEVEL_DEBUG, "End of %s()", __function_name); }