app/test: rework command registration
[dpdk.git] / app / test / test_debug.c
index 7c3ee92..0a3b2c4 100644 (file)
@@ -146,8 +146,4 @@ test_debug(void)
        return 0;
 }
 
-static struct test_command debug_cmd = {
-       .command = "debug_autotest",
-       .callback = test_debug,
-};
-REGISTER_TEST_COMMAND(debug_cmd);
+REGISTER_TEST_COMMAND(debug_autotest, test_debug);