eal: minor changes

Signed-off-by: Intel
This commit is contained in:
Intel 2013-09-18 12:00:00 +02:00 committed by Thomas Monjalon
parent 4d3d79e7a5
commit e740686611
4 changed files with 11 additions and 12 deletions

0
lib/librte_eal/common/include/rte_hexdump.h Executable file → Normal file
View File

View File

@ -337,7 +337,8 @@ eal_usage(const char *prgname)
" --"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 ) {
@ -543,7 +544,6 @@ eal_parse_blacklist_opt(const char *optarg, size_t idx)
return (idx);
}
/* Parse the argument given in the command line of the application */
static int
eal_parse_args(int argc, char **argv)

View File

@ -96,7 +96,8 @@ rte_exit(int exit_code, const char *format, ...)
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);

View File

@ -373,15 +373,13 @@ eal_intr_process_interrupts(struct epoll_event *events, int nfds)
*/
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);