" --"OPT_NO_HUGE" : use malloc instead of hugetlbfs\n"
" --"OPT_NO_PCI" : disable pci\n"
" --"OPT_NO_HPET" : disable hpet\n"
- " --"OPT_NO_SHCONF": no shared config (mmap'd files)\n\n",
+ " --"OPT_NO_SHCONF": no shared config (mmap'd files)\n"
+ "\n",
prgname);
/* Allow the application to print its usage message too if hook is set */
if ( rte_application_usage_hook ) {
return (idx);
}
-
/* Parse the argument given in the command line of the application */
static int
eal_parse_args(int argc, char **argv)
rte_log_set_history(0);
if (exit_code != 0)
- RTE_LOG(CRIT, EAL, "Error - exiting with code: %d\nCause: ", exit_code);
+ RTE_LOG(CRIT, EAL, "Error - exiting with code: %d\n"
+ " Cause: ", exit_code);
va_start(ap, format);
rte_vlog(RTE_LOG_CRIT, RTE_LOGTYPE_EAL, format, ap);
*/
bytes_read = read(events[n].data.fd, &buf, bytes_read);
- 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);
/* grab a lock, again to call callbacks and update status. */
rte_spinlock_lock(&intr_lock);