doc: fix metrics example
authorYong Wang <wang.yong19@zte.com.cn>
Tue, 18 Jul 2017 12:03:07 +0000 (08:03 -0400)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 19 Jul 2017 21:06:07 +0000 (00:06 +0300)
Signed-off-by: Yong Wang <wang.yong19@zte.com.cn>
Acked-by: Remy Horton <remy.horton@intel.com>
doc/guides/prog_guide/metrics_lib.rst

index 702c29d..d52204f 100644 (file)
@@ -144,6 +144,7 @@ print out all metrics for a given port:
 .. code-block:: c
 
     void print_metrics() {
+        struct rte_metric_value *metrics;
         struct rte_metric_name *names;
         int len;