Fixing some more format strings.

This commit is contained in:
Robin Sommer 2011-04-27 21:31:23 -07:00
parent 714289bd13
commit b01aa66fe6
3 changed files with 5 additions and 5 deletions

View file

@ -8,8 +8,8 @@
#include <sys/types.h> #include <sys/types.h>
#include <regex.h> #include <regex.h>
# define FMT_INT "%lld" # define FMT_INT "%" PRId64
# define FMT_UINT "%llu" # define FMT_UINT "%" PRIu64
static TableType* bt_tracker_headers = 0; static TableType* bt_tracker_headers = 0;
static RecordType* bittorrent_peer; static RecordType* bittorrent_peer;

View file

@ -127,7 +127,7 @@ void ODesc::Add(int64 i)
else else
{ {
char tmp[256]; char tmp[256];
sprintf(tmp, "%lld", i); sprintf(tmp, "%" PRId64, i);
Add(tmp); Add(tmp);
} }
} }
@ -139,7 +139,7 @@ void ODesc::Add(uint64 u)
else else
{ {
char tmp[256]; char tmp[256];
sprintf(tmp, "%llu", u); sprintf(tmp, "%" PRIu64, u);
Add(tmp); Add(tmp);
} }
} }

View file

@ -230,7 +230,7 @@ int HTTP_Entity::Undelivered(int64_t len)
{ {
if ( DEBUG_http ) if ( DEBUG_http )
{ {
DEBUG_MSG("Content gap %d, expect_data_length %d\n", DEBUG_MSG("Content gap %" PRId64", expect_data_length %" PRId64 "\n",
len, expect_data_length); len, expect_data_length);
} }