diff options
Diffstat (limited to 'vlib-api/vlibapi')
-rw-r--r-- | vlib-api/vlibapi/api_shared.c | 16 | ||||
-rw-r--r-- | vlib-api/vlibapi/node_serialize.c | 8 |
2 files changed, 13 insertions, 11 deletions
diff --git a/vlib-api/vlibapi/api_shared.c b/vlib-api/vlibapi/api_shared.c index fd23c458946..c62ac5b18a5 100644 --- a/vlib-api/vlibapi/api_shared.c +++ b/vlib-api/vlibapi/api_shared.c @@ -781,7 +781,7 @@ vl_msg_api_process_file (vlib_main_t * vm, u8 * filename, if (!(statb.st_mode & S_IFREG) || (statb.st_size < sizeof (*hp))) { vlib_cli_output (vm, "File not plausible: %s\n", filename); - close(fd); + close (fd); return; } @@ -1084,17 +1084,19 @@ api_trace_command_fn (vlib_main_t * vm, rv = vl_msg_api_trace_save (am, which, fp); fclose (fp); if (rv == -1) - vlib_cli_output (vm, "API Trace data not present\n"); + vlib_cli_output (vm, "API Trace data not present\n"); else if (rv == -2) - vlib_cli_output (vm, "File for writing is closed\n"); + vlib_cli_output (vm, "File for writing is closed\n"); else if (rv == -10) - vlib_cli_output (vm, "Error while writing header to file\n"); + vlib_cli_output (vm, "Error while writing header to file\n"); else if (rv == -11) - vlib_cli_output (vm, "Error while writing trace to file\n"); + vlib_cli_output (vm, "Error while writing trace to file\n"); else if (rv == -12) - vlib_cli_output (vm, "Error while writing end of buffer trace to file\n"); + vlib_cli_output (vm, + "Error while writing end of buffer trace to file\n"); else if (rv == -13) - vlib_cli_output (vm, "Error while writing start of buffer trace to file\n"); + vlib_cli_output (vm, + "Error while writing start of buffer trace to file\n"); else if (rv < 0) vlib_cli_output (vm, "Unkown error while saving: %d", rv); else diff --git a/vlib-api/vlibapi/node_serialize.c b/vlib-api/vlibapi/node_serialize.c index b1e4ae18697..4dc1a7d2272 100644 --- a/vlib-api/vlibapi/node_serialize.c +++ b/vlib-api/vlibapi/node_serialize.c @@ -356,10 +356,10 @@ test_node_serialize_command_fn (vlib_main_t * vm, for (k = 0; k < vec_len (node->next_nodes); k++) { if (node->next_nodes[k] != ~0) - { - next_node = nodes[node->next_nodes[k]]; - vlib_cli_output (vm, " [%d] %s", k, next_node->name); - } + { + next_node = nodes[node->next_nodes[k]]; + vlib_cli_output (vm, " [%d] %s", k, next_node->name); + } } } } |