[dpdk-dev,pktgen] Fix a typo in app/pktgen.c

Message ID 20180207161512.24010-1-rami.rosen@intel.com (mailing list archive)
State Not Applicable, archived
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Rami Rosen Feb. 7, 2018, 4:15 p.m. UTC
  This patch fixes a typo in pktgen_main_rxtx_loop() method 
of app/pktgen.c.

Signed-off-by: Rami Rosen <rami.rosen@intel.com>
---
 app/pktgen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Wiles, Keith Feb. 7, 2018, 2:48 p.m. UTC | #1
> On Feb 7, 2018, at 10:15 AM, Rosen, Rami <rami.rosen@intel.com> wrote:
> 
> This patch fixes a typo in pktgen_main_rxtx_loop() method 
> of app/pktgen.c.
> 
> Signed-off-by: Rami Rosen <rami.rosen@intel.com>
> ---
> app/pktgen.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/app/pktgen.c b/app/pktgen.c
> index 4904954..412585b 100644
> --- a/app/pktgen.c
> +++ b/app/pktgen.c
> @@ -1263,7 +1263,7 @@ pktgen_main_rxtx_loop(uint8_t lid)
> 	if (txcnt == 0)
> 		rte_panic("No ports found for %d lcore\n", lid);
> 
> -	printf("For TX found %d port(s) for lcore %d\n", rxcnt, lid);
> +	printf("For TX found %d port(s) for lcore %d\n", txcnt, lid);

Thanks I will apply it.

> 	for(idx = 0; idx < txcnt; idx++) {
> 		if (infos[idx] == NULL)
> 			rte_panic("Invalid TX config: port at index %d not found for %d lcore\n", idx, lid);
> -- 
> 2.14.3
> 

Regards,
Keith
  

Patch

diff --git a/app/pktgen.c b/app/pktgen.c
index 4904954..412585b 100644
--- a/app/pktgen.c
+++ b/app/pktgen.c
@@ -1263,7 +1263,7 @@  pktgen_main_rxtx_loop(uint8_t lid)
 	if (txcnt == 0)
 		rte_panic("No ports found for %d lcore\n", lid);
 
-	printf("For TX found %d port(s) for lcore %d\n", rxcnt, lid);
+	printf("For TX found %d port(s) for lcore %d\n", txcnt, lid);
 	for(idx = 0; idx < txcnt; idx++) {
 		if (infos[idx] == NULL)
 			rte_panic("Invalid TX config: port at index %d not found for %d lcore\n", idx, lid);