diff mbox

[PATCHV1] example:generator:print correct appl_mode

Message ID 1436450451-21925-1-git-send-email-balakrishna.garapati@linaro.org
State Superseded
Headers show

Commit Message

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

Comments

Balakrishna Garapati July 9, 2015, 2:53 p.m. UTC | #1
Wrong version. Sent an other patch with correct version v2. Ignore this
patch.

/Krishna

On 9 July 2015 at 16:00, Balakrishna.Garapati <
balakrishna.garapati@linaro.org> wrote:

> Signed-off-by: Balakrishna.Garapati <balakrishna.garapati@linaro.org>
> ---
>  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);
>  }
> --
> 1.9.1
>
>
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);
 }