Use error() to display error messages.

This commit is contained in:
Alexander Pipelka 2017-09-25 20:48:20 +02:00 committed by Rolf Ahrenberg
parent 2355dad37b
commit 3713d1a1fa
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}