]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/commitdiff
netstats: Simplification, comment out unimplemented comments
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 10 Sep 2013 15:01:41 +0000 (17:01 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 10 Sep 2013 15:01:41 +0000 (17:01 +0200)
commands/cmd_netstats.c

index 3c2bbe1734a1799e0b1dd364b68a48bd53bf1556..62734d114e1d83a83e8d4c02f790516d14836cd4 100644 (file)
@@ -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
 };
-