- if (bytes_read < 0) {
- RTE_LOG(ERR, EAL, "Error reading from file descriptor"
- " %d, error: %d\n", events[n].data.fd, errno);
- }
- else if (bytes_read == 0) {
- RTE_LOG(ERR, EAL,
- "Read nothing from file descriptor %d.\n",
- events[n].data.fd);
- }
+ if (bytes_read < 0)
+ RTE_LOG(ERR, EAL, "Error reading from file "
+ "descriptor %d: %s\n", events[n].data.fd,
+ strerror(errno));
+ else if (bytes_read == 0)
+ RTE_LOG(ERR, EAL, "Read nothing from file "
+ "descriptor %d\n", events[n].data.fd);