projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
debian: Distribute some files that were forgotten.
[openvswitch]
/
lib
/
poll-loop.c
diff --git
a/lib/poll-loop.c
b/lib/poll-loop.c
index aff2c335c732b88a0afa9152422d038c25b06039..32bbc13490b38486474c111c935fa7ba71b60605 100644
(file)
--- 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 "poll-loop.h"
#include <assert.h>
#include <errno.h>
+#include <inttypes.h>
#include <poll.h>
#include <stdlib.h>
#include <string.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_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));
}
}
VLOG_DBG("%s", ds_cstr(&ds));
@@
-253,7
+254,7
@@
poll_cancel(struct poll_waiter *pw)
static struct poll_waiter *
new_waiter(int fd, short int events)
{
static struct poll_waiter *
new_waiter(int fd, short int events)
{
- struct poll_waiter *waiter = x
calloc(1,
sizeof *waiter);
+ struct poll_waiter *waiter = x
zalloc(
sizeof *waiter);
assert(fd >= 0);
waiter->fd = fd;
waiter->events = events;
assert(fd >= 0);
waiter->fd = fd;
waiter->events = events;