summaryrefslogtreecommitdiffstats
path: root/vlib/vlib/unix/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'vlib/vlib/unix/plugin.c')
-rw-r--r--vlib/vlib/unix/plugin.c32
1 files changed, 15 insertions, 17 deletions
diff --git a/vlib/vlib/unix/plugin.c b/vlib/vlib/unix/plugin.c
index f8805b803cc..b3d5be02ed6 100644
--- a/vlib/vlib/unix/plugin.c
+++ b/vlib/vlib/unix/plugin.c
@@ -223,8 +223,7 @@ vlib_plugin_early_init (vlib_main_t * vm)
static clib_error_t *
vlib_plugins_show_cmd_fn (vlib_main_t * vm,
- unformat_input_t * input,
- vlib_cli_command_t * cmd)
+ unformat_input_t * input, vlib_cli_command_t * cmd)
{
plugin_main_t *pm = &vlib_plugin_main;
u8 *s = 0;
@@ -232,27 +231,26 @@ vlib_plugins_show_cmd_fn (vlib_main_t * vm,
uword *value = 0;
int index = 1;
- s = format(s, " Plugin path is: %s\n",pm->plugin_path);
+ s = format (s, " Plugin path is: %s\n", pm->plugin_path);
if (vlib_plugin_name_filter)
- s = format(s," Plugin filter: %s\n",vlib_plugin_name_filter);
+ s = format (s, " Plugin filter: %s\n", vlib_plugin_name_filter);
- s = format(s, " Plugins loaded: \n");
- hash_foreach_mem (key, value, pm->plugin_by_name_hash, {
- if (key != 0)
- s = format(s, " %d.%s\n",index, key);
- index++;
- });
+ s = format (s, " Plugins loaded: \n");
+ hash_foreach_mem (key, value, pm->plugin_by_name_hash,
+ {
+ if (key != 0)
+ s = format (s, " %d.%s\n", index, key); index++;}
+ );
- vlib_cli_output(vm, "%v", s);
- vec_free(s);
+ vlib_cli_output (vm, "%v", s);
+ vec_free (s);
return 0;
}
-VLIB_CLI_COMMAND (plugins_show_cmd, static) = {
- .path = "show plugins",
- .short_help = "show loaded plugins",
- .function = vlib_plugins_show_cmd_fn,
-};
+VLIB_CLI_COMMAND (plugins_show_cmd, static) =
+{
+.path = "show plugins",.short_help = "show loaded plugins",.function =
+ vlib_plugins_show_cmd_fn,};
/*
* fd.io coding-style-patch-verification: ON
*