Merge "Remove stray log line."
This commit is contained in:
commit
f69139e105
@ -30,10 +30,7 @@
|
|||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include "private/libc_logging.h"
|
#include "private/libc_logging.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
extern "C" int __poll_chk(struct pollfd* fds, nfds_t fd_count, int timeout, size_t fds_size) {
|
extern "C" int __poll_chk(struct pollfd* fds, nfds_t fd_count, int timeout, size_t fds_size) {
|
||||||
fprintf(stderr, "__poll_chk %p %i %i %i\n", fds, (int)fd_count, timeout, (int) fds_size);
|
|
||||||
if (__predict_false(fds_size / sizeof(*fds) < fd_count)) {
|
if (__predict_false(fds_size / sizeof(*fds) < fd_count)) {
|
||||||
__fortify_chk_fail("poll: pollfd array smaller than fd count", 0);
|
__fortify_chk_fail("poll: pollfd array smaller than fd count", 0);
|
||||||
}
|
}
|
||||||
@ -41,7 +38,6 @@ fprintf(stderr, "__poll_chk %p %i %i %i\n", fds, (int)fd_count, timeout, (int) f
|
|||||||
}
|
}
|
||||||
|
|
||||||
extern "C" int __ppoll_chk(struct pollfd* fds, nfds_t fd_count, const struct timespec* timeout, const sigset_t* mask, size_t fds_size) {
|
extern "C" int __ppoll_chk(struct pollfd* fds, nfds_t fd_count, const struct timespec* timeout, const sigset_t* mask, size_t fds_size) {
|
||||||
fprintf(stderr, "__ppoll_chk %p %i %p %p %i\n", fds, (int)fd_count, timeout, mask, (int) fds_size);
|
|
||||||
if (__predict_false(fds_size / sizeof(*fds) < fd_count)) {
|
if (__predict_false(fds_size / sizeof(*fds) < fd_count)) {
|
||||||
__fortify_chk_fail("ppoll: pollfd array smaller than fd count", 0);
|
__fortify_chk_fail("ppoll: pollfd array smaller than fd count", 0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user