devargs: restore empty devargs
[dpdk.git] / lib / librte_eal / common / include / rte_devargs.h
index c093c17..6834333 100644 (file)
@@ -48,6 +48,7 @@
 extern "C" {
 #endif
 
+#include <stdio.h>
 #include <sys/queue.h>
 #include <rte_pci.h>
 
@@ -87,8 +88,8 @@ struct rte_devargs {
                        char drv_name[32];
                } virtual;
        };
-#define RTE_DEVARGS_LEN 256
-       char args[RTE_DEVARGS_LEN]; /**< Arguments string as given by user. */
+       /** Arguments string as given by user or "" for no argument. */
+       char *args;
 };
 
 /** user device double-linked queue type definition */
@@ -135,8 +136,11 @@ rte_eal_devargs_type_count(enum rte_devtype devtype);
 
 /**
  * This function dumps the list of user device and their arguments.
+ *
+ * @param f
+ *   A pointer to a file for output
  */
-void rte_eal_devargs_dump(void);
+void rte_eal_devargs_dump(FILE *f);
 
 #ifdef __cplusplus
 }