size_t size = 0;
- WFD_RET_IF(data == NULL || key == NULL || type == 0, , "Invialid parameter!");
+ WFD_RET_IF(data == NULL || key == NULL || type == 0, "Invialid parameter!");
app_control_h control = data;
return;
}
snprintf(buff, size + 1, "%s", ((char*) ptr));
- WFD_APP_LOG(WFD_APP_LOG_ERROR, "Found STR -KEY: %s, VAL: %s, SIZE: %d", key, buff, size);
+ WFD_APP_LOG(WFD_APP_LOG_ERROR, "Found STR -KEY: %s, VAL: %s, SIZE: %zu", key, buff, size);
app_control_add_extra_data(control, key, buff);
free(buff);
return;
}
snprintf(buff, size + 1, "%s", ((char*) ptr));
- WFD_APP_LOG(WFD_APP_LOG_ERROR, "Found STR -KEY: %s, VAL: %s, SIZE: %d", key, buff, size);
+ WFD_APP_LOG(WFD_APP_LOG_ERROR, "Found STR -KEY: %s, VAL: %s, SIZE: %zu", key, buff, size);
app_control_add_extra_data(control, key, buff);
free(buff);