git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mbuf: remove rte_ctrlmbuf
[dpdk.git]
/
app
/
test
/
commands.c
diff --git
a/app/test/commands.c
b/app/test/commands.c
index
0640ac9
..
9ea3c62
100644
(file)
--- a/
app/test/commands.c
+++ b/
app/test/commands.c
@@
-137,7
+137,6
@@
dump_struct_sizes(void)
#define DUMP_SIZE(t) printf("sizeof(" #t ") = %u\n", (unsigned)sizeof(t));
DUMP_SIZE(struct rte_mbuf);
DUMP_SIZE(struct rte_pktmbuf);
#define DUMP_SIZE(t) printf("sizeof(" #t ") = %u\n", (unsigned)sizeof(t));
DUMP_SIZE(struct rte_mbuf);
DUMP_SIZE(struct rte_pktmbuf);
- DUMP_SIZE(struct rte_ctrlmbuf);
DUMP_SIZE(struct rte_mempool);
DUMP_SIZE(struct rte_ring);
#undef DUMP_SIZE
DUMP_SIZE(struct rte_mempool);
DUMP_SIZE(struct rte_ring);
#undef DUMP_SIZE
@@
-324,9
+323,8
@@
cmdline_parse_ctx_t main_ctx[] = {
int commands_init(void)
{
struct test_command *t;
int commands_init(void)
{
struct test_command *t;
- char builtin_commands[] = "";
char *commands, *ptr;
char *commands, *ptr;
- int commands_len =
strlen(builtin_commands) + 1
;
+ int commands_len =
0
;
TAILQ_FOREACH(t, &commands_list, next) {
commands_len += strlen(t->command) + 1;
TAILQ_FOREACH(t, &commands_list, next) {
commands_len += strlen(t->command) + 1;
@@
-340,7
+338,8
@@
int commands_init(void)
TAILQ_FOREACH(t, &commands_list, next) {
ptr += sprintf(ptr, "%s#", t->command);
}
TAILQ_FOREACH(t, &commands_list, next) {
ptr += sprintf(ptr, "%s#", t->command);
}
- ptr += sprintf(ptr, "%s", builtin_commands);
+ ptr--;
+ ptr[0] = '\0';
cmd_autotest_autotest.string_data.str = commands;
return 0;
cmd_autotest_autotest.string_data.str = commands;
return 0;