From 3713d1a1fa1012fcef6eb4f670d0a0bd66ef5abf Mon Sep 17 00:00:00 2001 From: Alexander Pipelka Date: Mon, 25 Sep 2017 20:48:20 +0200 Subject: [PATCH] Use error() to display error messages. --- sectionfilter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sectionfilter.c b/sectionfilter.c index 8aa1e39..3936372 100644 --- a/sectionfilter.c +++ b/sectionfilter.c @@ -223,8 +223,8 @@ void cSatipSectionFilter::Send(void) // Update statistics AddSectionStatistic(count, 1); } - else - esyslog("failed to send section data (%i bytes) to fd: %i (errno: %i)", count, socketM[1], errno); + else if (errno != EAGAIN) + error("failed to send section data (%i bytes) [device=%d]", count, deviceIndexM); } ringBufferM->Drop(section); }