Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #216 from blutack/master

Remove uint64_t format specifier warnings
  • Loading branch information...
commit a3eecd80909851f1d65d3d4e48edff535f803df5 2 parents c5ab59e + 2be1dfd
@tailhook tailhook authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.