session: Remove debug spew on I/O events

This really is a bit much with some drivers that do lots of small
I/O transfers.
This commit is contained in:
Daniel Elstner 2015-11-23 20:36:08 +01:00 committed by Uwe Hermann
parent e8cd7d602c
commit 3393f185a5
2 changed files with 0 additions and 13 deletions

View File

@ -117,21 +117,12 @@ static gboolean fd_source_dispatch(GSource *source,
GSourceFunc callback, void *user_data)
{
struct fd_source *fsource;
const char *name;
unsigned int revents;
gboolean keep;
fsource = (struct fd_source *)source;
name = g_source_get_name(source);
revents = fsource->pollfd.revents;
if (revents != 0) {
sr_spew("%s: %s " G_POLLFD_FORMAT ", revents 0x%.2X",
__func__, name, fsource->pollfd.fd, revents);
} else {
sr_spew("%s: %s " G_POLLFD_FORMAT ", timed out",
__func__, name, fsource->pollfd.fd);
}
if (!callback) {
sr_err("Callback not set, cannot dispatch event.");
return G_SOURCE_REMOVE;

View File

@ -134,10 +134,6 @@ static gboolean usb_source_dispatch(GSource *source,
pollfd = g_ptr_array_index(usource->pollfds, i);
revents |= pollfd->revents;
}
if (revents != 0)
sr_spew("%s: revents 0x%.2X", __func__, revents);
else
sr_spew("%s: timed out", __func__);
if (!callback) {
sr_err("Callback not set, cannot dispatch event.");