diff mbox

[PATCHv2] example:generator:print correct appl_mode

Message ID 1436452666-27134-1-git-send-email-balakrishna.garapati@linaro.org
State Accepted
Commit f8721d762b2b3ccd6ced637be23ae7ef2c80bb6d
Headers show

Commit Message

Balakrishna Garapati July 9, 2015, 2:37 p.m. UTC
Signed-off-by: Balakrishna.Garapati <balakrishna.garapati@linaro.org>
---
 since v1: changed the commit message
 example/generator/odp_generator.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Maxim Uvarov July 14, 2015, 10:43 a.m. UTC | #1
Applied,

thanks,
Maxim.

On 07/09/15 17:37, Balakrishna.Garapati wrote:
> Signed-off-by: Balakrishna.Garapati <balakrishna.garapati@linaro.org>
> ---
>   since v1: changed the commit message
>   example/generator/odp_generator.c | 6 ++++--
>   1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c
> index 0ff264c..15de035 100644
> --- a/example/generator/odp_generator.c
> +++ b/example/generator/odp_generator.c
> @@ -991,9 +991,11 @@ static void print_info(char *progname, appl_args_t *appl_args)
>   	printf("\n"
>   	       "Mode:            ");
>   	if (appl_args->mode == 0)
> -		PRINT_APPL_MODE(0);
> +		PRINT_APPL_MODE(APPL_MODE_UDP);
> +	else if (appl_args->mode == 1)
> +		PRINT_APPL_MODE(APPL_MODE_PING);
>   	else
> -		PRINT_APPL_MODE(0);
> +		PRINT_APPL_MODE(APPL_MODE_RCV);
>   	printf("\n\n");
>   	fflush(NULL);
>   }
diff mbox

Patch

diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c
index 0ff264c..15de035 100644
--- a/example/generator/odp_generator.c
+++ b/example/generator/odp_generator.c
@@ -991,9 +991,11 @@  static void print_info(char *progname, appl_args_t *appl_args)
 	printf("\n"
 	       "Mode:            ");
 	if (appl_args->mode == 0)
-		PRINT_APPL_MODE(0);
+		PRINT_APPL_MODE(APPL_MODE_UDP);
+	else if (appl_args->mode == 1)
+		PRINT_APPL_MODE(APPL_MODE_PING);
 	else
-		PRINT_APPL_MODE(0);
+		PRINT_APPL_MODE(APPL_MODE_RCV);
 	printf("\n\n");
 	fflush(NULL);
 }