aboutsummaryrefslogtreecommitdiff
path: root/lib/poll-loop.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2009-11-06 10:43:50 -0800
committerBen Pfaff <blp@nicira.com>2009-11-09 10:30:10 -0800
commit2886875a385df582354ac916431b278f2fe698e0 (patch)
tree7ba5e3d899fab2d271c2a4cfaeda3d98cfd44573 /lib/poll-loop.c
parentcc56746aed6d53046b17b01756362e566734241c (diff)
Fix incorrect printf format specifiers.
GCC reported these during a 64-bit build.
Diffstat (limited to 'lib/poll-loop.c')
-rw-r--r--lib/poll-loop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/poll-loop.c b/lib/poll-loop.c
index aff2c335..945b5c44 100644
--- a/lib/poll-loop.c
+++ b/lib/poll-loop.c
@@ -18,6 +18,7 @@
#include "poll-loop.h"
#include <assert.h>
#include <errno.h>
+#include <inttypes.h>
#include <poll.h>
#include <stdlib.h>
#include <string.h>
@@ -122,7 +123,7 @@ log_wakeup(const struct backtrace *backtrace, const char *format, ...)
ds_put_char(&ds, ':');
for (i = 0; i < backtrace->n_frames; i++) {
- ds_put_format(&ds, " 0x%x", backtrace->frames[i]);
+ ds_put_format(&ds, " 0x%"PRIxPTR, backtrace->frames[i]);
}
}
VLOG_DBG("%s", ds_cstr(&ds));