From: Michal Sojka Date: Tue, 10 Sep 2013 15:01:41 +0000 (+0200) Subject: netstats: Simplification, comment out unimplemented comments X-Git-Tag: eaton-0.1-beta~66^2~2 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/pes-rpp/rpp-test-sw.git/commitdiff_plain/61e9cec216f54ec070234762b926d36b485917c5 netstats: Simplification, comment out unimplemented comments --- diff --git a/commands/cmd_netstats.c b/commands/cmd_netstats.c index 3c2bbe1..62734d1 100644 --- a/commands/cmd_netstats.c +++ b/commands/cmd_netstats.c @@ -180,29 +180,20 @@ void print_rx_channel_stat() void printStatistics() { - rpp_sci_printf((const char *) "BDs:\t\tTX\tRX\n"); - rpp_sci_printf((const char *) "NO of filled PKTs:\t%d\t%d",filledTXPKTs,filledRXPKTs); - rpp_sci_printf((const char *) "\n"); - rpp_sci_printf((const char *) "NO of sent PKTs:\t%d\t%d",handledTXPKTs,handledRXPKTs); - rpp_sci_printf((const char *) "\n"); - rpp_sci_printf((const char *) "NO of filled BDs:\t%d\t%d",filledTXbds,filledRXbds); - rpp_sci_printf((const char *) "\n"); - rpp_sci_printf((const char *) "NO of sent BDs:\t%d\t%d",handledTXbds,handledRXbds); - rpp_sci_printf((const char *) "\n"); - rpp_sci_printf((const char *) "NO of runs of ISR:\t%d\t%d",countEMACCore0TxIsr,countEMACCore0RxIsr); - rpp_sci_printf((const char *) "\n"); - rpp_sci_printf((const char *) "\n"); - - rpp_sci_printf((const char *) "PBUFs:\t\tTX\tRX\n"); - rpp_sci_printf((const char *) "PBUF Chains prepared:\t%d\t%d",preparedTxPBUFChains,preparedRxPBUFChains); - rpp_sci_printf((const char *) "\n"); - rpp_sci_printf((const char *) "PBUFs prepared:\t%d\t%d",preparedTxPBUFs,preparedRxPBUFs); - rpp_sci_printf((const char *) "\n"); - rpp_sci_printf((const char *) "PBUF Chains filled:\t%d\t%d",filledTxPBUFChains,filledRxPBUFChains); - rpp_sci_printf((const char *) "\n"); - rpp_sci_printf((const char *) "PBUFs filled:\t%d\t%d",filledTxPBUFs,filledRxPBUFs); - rpp_sci_printf((const char *) "\n"); - rpp_sci_printf((const char *) "\n"); + rpp_sci_printf("BDs:\t\tTX\tRX\n"); + rpp_sci_printf("NO of filled PKTs:\t%d\t%d\n",filledTXPKTs,filledRXPKTs); + rpp_sci_printf("NO of sent PKTs:\t%d\t%d\n",handledTXPKTs,handledRXPKTs); + rpp_sci_printf("NO of filled BDs:\t%d\t%d\n",filledTXbds,filledRXbds); + rpp_sci_printf("NO of sent BDs:\t%d\t%d\n",handledTXbds,handledRXbds); + rpp_sci_printf("NO of runs of ISR:\t%d\t%d\n",countEMACCore0TxIsr,countEMACCore0RxIsr); + rpp_sci_printf("\n"); + + rpp_sci_printf("PBUFs:\t\tTX\tRX\n"); + rpp_sci_printf("PBUF Chains prepared:\t%d\t%d\n",preparedTxPBUFChains,preparedRxPBUFChains); + rpp_sci_printf("PBUFs prepared:\t%d\t%d\n",preparedTxPBUFs,preparedRxPBUFs); + rpp_sci_printf("PBUF Chains filled:\t%d\t%d\n",filledTxPBUFChains,filledRxPBUFChains); + rpp_sci_printf("PBUFs filled:\t%d\t%d\n",filledTxPBUFs,filledRxPBUFs); + rpp_sci_printf("\n"); } #endif @@ -372,12 +363,12 @@ cmd_des_t const cmd_des_bufferdescriptors={ "\n" "=== Description ===\n" "After startup you use keys to control what will be done.\n" - " q - quit\n" - " s - general statistics\n" - " t - transmit channel status\n" - " r - receive channel status\n" - " b - after giving address of bd it prints bd content\n" - " a - checks consistency of buffer descriptors\n" + "* q - quit\n" + "* s - general statistics\n" + "* t - transmit channel status\n" + "* r - receive channel status\n" + "* b - after giving address of bd it prints bd content\n" + "* a - checks consistency of buffer descriptors\n" "\n" "\n" "=== Example ===\n" @@ -432,10 +423,9 @@ cmd_des_t const cmd_des_lwip={ /** List of commands for lwip, defined as external */ cmd_des_t const *cmd_list_netstats[]={ &cmd_des_bufferdescriptors, - &cmd_des_dhcp, +// &cmd_des_dhcp, #if LWIP_STATS_DISPLAY - &cmd_des_lwip, +// &cmd_des_lwip, #endif NULL }; -