[dpdk-dev] [PATCH] doc/metrics: fix variable undefined error

Yong Wang wang.yong19 at zte.com.cn
Tue Jul 18 14:03:07 CEST 2017


Signed-off-by: Yong Wang <wang.yong19 at zte.com.cn>
---
 doc/guides/prog_guide/metrics_lib.rst | 1 +
 1 file changed, 1 insertion(+)

diff --git a/doc/guides/prog_guide/metrics_lib.rst b/doc/guides/prog_guide/metrics_lib.rst
index 702c29d..d52204f 100644
--- a/doc/guides/prog_guide/metrics_lib.rst
+++ b/doc/guides/prog_guide/metrics_lib.rst
@@ -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;
 
-- 
1.8.3.1




More information about the dev mailing list