int ret = MDGD_ERROR_NONE;
const gchar *sender = g_dbus_method_invocation_get_sender(invocation);
- int length = 0;
int len;
int iter_len;
unsigned char *data;
int ret = MDGD_ERROR_NONE;
const gchar *sender = g_dbus_method_invocation_get_sender(invocation);
- int length = 0;
int len;
int iter_len;
unsigned char *data;
LOG_BEGIN();
- mdgd_context_t *mdgd_ctx = mdgd_context_get_context();
-
/* Get all device in group */
mdgd_db_get_devices_in_group(name, &devices, &device_count);
for (int i = 0; i < device_count; i++) {
mdgd_create_variant_progress(cmd->arg1, num_total, total_bytes, cur_percent));
}
} else if (num_read == 0 && num_total == total_bytes) {
- LOG_DEBUG("file trans complete : %d bytes\n", num_total);
+ LOG_DEBUG("file trans complete : %ld bytes\n", num_total);
break;
} else {
char buf[128];
client_len = sizeof(clientaddr);
client_sockfd = accept(server_sockfd, (struct sockaddr *)&clientaddr, &client_len);
inet_ntop(AF_INET, &clientaddr.sin_addr.s_addr, client_ipaddr, sizeof(client_ipaddr));
- LOG_DEBUG("Accepted IP : %s, client socket : %d", client_ipaddr);
+ LOG_DEBUG("Accepted IP : %s, client socket : %d", client_ipaddr, client_sockfd);
}
if (client_sockfd == -1) {
observationInfo.address.c_str(), observationInfo.port);
LOG_DEBUG("Request type %s, flag %x", requestType.c_str(), requestFlag);
for (auto &attribute : requestRep) {
- LOG_DEBUG("%s of type %d with value %s", attribute.attrname().c_str(),
- attribute.type(),
- attribute.getValueToString().c_str());
+ LOG_DEBUG("%s of type %d with value %s", (char *)attribute.attrname().c_str(),
+ (int)attribute.type(),
+ (char *)attribute.getValueToString().c_str());
}
if (requestType == "GET") {