igb_uio: fix IRQ mode handling
[dpdk.git] / lib / librte_eal / common / eal_common_devargs.c
index 52f5cc7..4c7d11a 100644 (file)
@@ -69,8 +69,8 @@ rte_eal_devargs_add(enum rte_devtype devtype, const char *devargs_str)
        memset(devargs, 0, sizeof(*devargs));
        devargs->type = devtype;
 
-       /* set the first ';' to '\0' to split name and arguments */
-       sep = strchr(buf, ';');
+       /* set the first ',' to '\0' to split name and arguments */
+       sep = strchr(buf, ',');
        if (sep != NULL) {
                sep[0] = '\0';
                snprintf(devargs->args, sizeof(devargs->args), "%s", sep + 1);
@@ -122,31 +122,31 @@ rte_eal_devargs_type_count(enum rte_devtype devtype)
 
 /* dump the user devices on the console */
 void
-rte_eal_devargs_dump(void)
+rte_eal_devargs_dump(FILE *f)
 {
        struct rte_devargs *devargs;
 
-       printf("User device white list:\n");
+       fprintf(f, "User device white list:\n");
        TAILQ_FOREACH(devargs, &devargs_list, next) {
                if (devargs->type == RTE_DEVTYPE_WHITELISTED_PCI)
-                       printf("  PCI whitelist " PCI_PRI_FMT " %s\n",
+                       fprintf(f, "  PCI whitelist " PCI_PRI_FMT " %s\n",
                               devargs->pci.addr.domain,
                               devargs->pci.addr.bus,
                               devargs->pci.addr.devid,
                               devargs->pci.addr.function,
                               devargs->args);
                else if (devargs->type == RTE_DEVTYPE_BLACKLISTED_PCI)
-                       printf("  PCI blacklist " PCI_PRI_FMT " %s\n",
+                       fprintf(f, "  PCI blacklist " PCI_PRI_FMT " %s\n",
                               devargs->pci.addr.domain,
                               devargs->pci.addr.bus,
                               devargs->pci.addr.devid,
                               devargs->pci.addr.function,
                               devargs->args);
                else if (devargs->type == RTE_DEVTYPE_VIRTUAL)
-                       printf("  VIRTUAL %s %s\n",
+                       fprintf(f, "  VIRTUAL %s %s\n",
                               devargs->virtual.drv_name,
                               devargs->args);
                else
-                       printf("  UNKNOWN %s\n", devargs->args);
+                       fprintf(f, "  UNKNOWN %s\n", devargs->args);
        }
 }