Browse files

Remove unit64_t format specifier warnings

Explicitly cast to long long unsigned int to remove build warnings.
  • Loading branch information...
1 parent 624c483 commit 2be1dfd1833596aedc3440d11017b8c4104303e3 @blutack blutack committed Feb 13, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/global.c
View
6 src/core/global.c
@@ -901,7 +901,7 @@ static void nn_global_submit_counter (int i, struct nn_sock *s,
if(self.print_statistics) {
fprintf(stderr, "nanomsg: socket.%s: %s: %llu\n",
- s->socket_name, name, value);
+ s->socket_name, name, (long long unsigned int)value);
}
if (self.statistics_socket >= 0) {
@@ -916,11 +916,11 @@ static void nn_global_submit_counter (int i, struct nn_sock *s,
if(*s->socket_name) {
len = sprintf (buf, "ESTP:%s:%s:socket.%s:%s: %sZ 10 %llu:c",
self.hostname, self.appname, s->socket_name, name,
- timebuf, value);
+ timebuf, (long long unsigned int)value);
} else {
len = sprintf (buf, "ESTP:%s:%s:socket.%d:%s: %sZ 10 %llu:c",
self.hostname, self.appname, i, name,
- timebuf, value);
+ timebuf, (long long unsigned int)value);
}
nn_assert (len < (int)sizeof(buf));
(void) nn_send (self.statistics_socket, buf, len, NN_DONTWAIT);

0 comments on commit 2be1dfd

Please sign in to comment.