Use error() to display error messages.

This commit is contained in:
Alexander Pipelka 2017-09-25 20:48:20 +02:00
parent c4c2ba8d14
commit 5159508f2d
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);
}