From 3647548526bdcdbe72197d04ed78be415cbf7eb2 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Fri, 20 Mar 2020 11:07:45 -0600 Subject: [PATCH] clean up on the shell echo commands --- libopenfpga/libopenfpgashell/src/shell.tpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/libopenfpga/libopenfpgashell/src/shell.tpp b/libopenfpga/libopenfpgashell/src/shell.tpp index 5bd4ec56c..24ef13dea 100644 --- a/libopenfpga/libopenfpgashell/src/shell.tpp +++ b/libopenfpga/libopenfpgashell/src/shell.tpp @@ -320,19 +320,11 @@ void Shell::print_commands() const { /* Print the class name */ VTR_LOG("%s:\n", command_class_names_[cmd_class].c_str()); - size_t cnt = 0; for (const ShellCommandId& cmd : commands_by_classes_[cmd_class]) { /* Print the command names in this class * but limited4 command per line for a clean layout */ - VTR_LOG("%s", commands_[cmd].name().c_str()); - cnt++; - if (4 == cnt) { - VTR_LOG("\n"); - cnt = 0; - } else { - VTR_LOG("\t"); - } + VTR_LOG("\t%s\n", commands_[cmd].name().c_str()); } /* Put a new line in the end as a splitter */