latency = GNUNET_TIME_absolute_get_duration (send_time);
r = ntohl (msg->round_number);
GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%u <- %u (%u) latency: %s\n",
- get_index (peer), get_index (peer->dest), ntohl (msg->counter),
+ get_index (peer),
+ get_index (peer->dest),
+ (uint32_t) ntohl (msg->counter),
GNUNET_STRINGS_relative_time_to_string (latency, GNUNET_NO));
/* Online variance calculation */
GCCH_2s (ch),
GCP_2s (dest),
GNUNET_h2s (port),
- ntohl (options),
- ntohl (ccn.channel_of_client));
+ (uint32_t) ntohl (options),
+ (uint32_t) ntohl (ccn.channel_of_client));
/* notify local client about incoming connection! */
env = GNUNET_MQ_msg (cm,
GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_CREATE);
LOG (GNUNET_ERROR_TYPE_DEBUG,
"%s tried to destroy unknown channel %X\n",
GSC_2s(c),
- ntohl (msg->ccn.channel_of_client));
+ (uint32_t) ntohl (msg->ccn.channel_of_client));
return;
}
LOG (GNUNET_ERROR_TYPE_DEBUG,
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Processing PUT request for `%s' of type %u\n",
GNUNET_h2s (&dm->key),
- ntohl (dm->type));
+ (uint32_t) ntohl (dm->type));
rid = ntohl (dm->rid);
size = ntohl (dm->size);
if (rid > 0)
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Processing GET request of type %u\n",
- ntohl (msg->type));
+ (uint32_t) ntohl (msg->type));
GNUNET_STATISTICS_update (stats,
gettext_noop ("# GET requests received"),
1,
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Processing GET request for `%s' of type %u\n",
GNUNET_h2s (&msg->key),
- ntohl (msg->type));
+ (uint32_t) ntohl (msg->type));
GNUNET_STATISTICS_update (stats,
gettext_noop ("# GET KEY requests received"),
1,
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Processing REMOVE request for `%s' of type %u\n",
GNUNET_h2s (&dm->key),
- ntohl (dm->type));
+ (uint32_t) ntohl (dm->type));
plugin->api->get_key (plugin->api->cls,
0,
&dm->key,
record = PEERSTORE_parse_record_message (srm);
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Received a store request. Sub system `%s' Peer `%s Key `%s' Options: %d.\n",
+ "Received a store request. Sub system `%s' Peer `%s Key `%s' Options: %u.\n",
record->sub_system,
GNUNET_i2s (record->peer),
record->key,
- ntohl (srm->options));
+ (uint32_t) ntohl (srm->options));
record->client = client;
if (GNUNET_OK !=
db->store_record (db->cls,
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Revocation query result: %d\n",
- ntohl (qrm->is_valid));
+ (uint32_t) ntohl (qrm->is_valid));
q->func (q->func_cls,
ntohl (qrm->is_valid));
GNUNET_REVOCATION_query_cancel (q);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Revocation transmission result: %d\n",
- ntohl (rrm->is_valid));
+ (uint32_t) ntohl (rrm->is_valid));
h->func (h->func_cls,
ntohl (rrm->is_valid));
GNUNET_REVOCATION_revoke_cancel (h);
listener = op->listener;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Received P2P operation request (op %u, port %s) for active listener\n",
- ntohl (msg->operation),
+ (uint32_t) ntohl (msg->operation),
GNUNET_h2s (&listener->app_id));
incoming_suggest (op,
listener);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Client created new set (operation %u)\n",
- ntohl (msg->operation));
+ (uint32_t) ntohl (msg->operation));
if (NULL != set_get (client))
{
/* There can only be one set per client */
}
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Client requested cancel for op %u\n",
- ntohl (msg->request_id));
+ (uint32_t) ntohl (msg->request_id));
found = GNUNET_NO;
for (op = set->ops_head; NULL != op; op = op->next)
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Client accepting request %u\n",
- ntohl (msg->accept_reject_id));
+ (uint32_t) ntohl (msg->accept_reject_id));
GNUNET_assert (GNUNET_YES == op->is_incoming);
op->is_incoming = GNUNET_NO;
GNUNET_CONTAINER_DLL_remove (incoming_head,