Permalink
Browse files

Fix format specifier for uint64_t (fixes #205)

  • Loading branch information...
1 parent bbbb778 commit 624c4830c41f6130543cee9d03efbc8e6ed7414a @djc djc committed Dec 6, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/global.c
View
@@ -900,7 +900,7 @@ static void nn_global_submit_counter (int i, struct nn_sock *s,
int len;
if(self.print_statistics) {
- fprintf(stderr, "nanomsg: socket.%s: %s: %lu\n",
+ fprintf(stderr, "nanomsg: socket.%s: %s: %llu\n",
s->socket_name, name, value);
}
@@ -914,11 +914,11 @@ static void nn_global_submit_counter (int i, struct nn_sock *s,
#endif
strftime (timebuf, 20, "%Y-%m-%dT%H:%M:%S", &strtime);
if(*s->socket_name) {
- len = sprintf (buf, "ESTP:%s:%s:socket.%s:%s: %sZ 10 %lu:c",
+ len = sprintf (buf, "ESTP:%s:%s:socket.%s:%s: %sZ 10 %llu:c",
self.hostname, self.appname, s->socket_name, name,
timebuf, value);
} else {
- len = sprintf (buf, "ESTP:%s:%s:socket.%d:%s: %sZ 10 %lu:c",
+ len = sprintf (buf, "ESTP:%s:%s:socket.%d:%s: %sZ 10 %llu:c",
self.hostname, self.appname, i, name,
timebuf, value);
}

0 comments on commit 624c483

Please sign in to comment.