#include <limits.h>
#include <stdbool.h>
#include <errno.h>
+#include <libgen.h>
+
#include <rte_common.h>
#include "pmdinfogen.h"
else
fprintf(ofd, " ");
}
- fprintf(ofd, "]}\";");
+ fprintf(ofd, "]}\";\n");
drv = drv->next;
}
if (argc < 3) {
fprintf(stderr,
- "usage: pmdinfo <object file> <c output file>\n");
+ "usage: %s <object file> <c output file>\n",
+ basename(argv[0]));
exit(127);
}
parse_elf(&info, argv[1]);