From patchwork Thu Jul 9 13:32:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balakrishna Garapati X-Patchwork-Id: 50957 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 11221228E5 for ; Thu, 9 Jul 2015 13:32:31 +0000 (UTC) Received: by wgbbj7 with SMTP id bj7sf79490819wgb.2 for ; Thu, 09 Jul 2015 06:32:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list; bh=fFW9wcJ9qPbIGQWdiRjf//HUN7wcY1BFaCWxjCga4tI=; b=AdvT+gyuaTc5YjJzFZH96Hk3yETLKU7hrMg6G/cO1vyo+IBTAkKIGWidm8ethGFJHo Ys7c54ygk+cLbng1Qc0batocoVwOVq9FyBpT+FQdtLr4ZsFB+nWU9r81db7UoMcYkzKt 7Of6aFfizTI3DXe+msPvZDd5eTE2F+lT+SS/pXGTM+hDmjS96HdGcY3r2EbmaZOfjR7S GkSMQ6ObRq7FMC6l9wl3nPUbLd+IR2AseJZIxEs4GcFpLii0Jcmhfth2O33pJDjLXYs7 9YxYQgtAaQez6gMBp2VE2ekHJER08Vfo8XJfT8Mf3MPAZsPW244d9IZsbJhvR/tmA/33 m9OQ== X-Gm-Message-State: ALoCoQkfZYz6T2xT7yXSlsj/Didr10WJWZl+lEkSdk+fCZO1sRH5FIyJmOBHm0BmBdnVcj0zrqN5 X-Received: by 10.152.37.101 with SMTP id x5mr7941552laj.5.1436448750351; Thu, 09 Jul 2015 06:32:30 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.184.168 with SMTP id ev8ls1041777lac.44.gmail; Thu, 09 Jul 2015 06:32:30 -0700 (PDT) X-Received: by 10.112.180.37 with SMTP id dl5mr8591923lbc.108.1436448750199; Thu, 09 Jul 2015 06:32:30 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id j8si4731335lah.14.2015.07.09.06.32.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 06:32:30 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by laar3 with SMTP id r3so246842731laa.0 for ; Thu, 09 Jul 2015 06:32:30 -0700 (PDT) X-Received: by 10.152.4.163 with SMTP id l3mr15119868lal.35.1436448750101; Thu, 09 Jul 2015 06:32:30 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp672535lbb; Thu, 9 Jul 2015 06:32:29 -0700 (PDT) X-Received: by 10.141.23.136 with SMTP id z130mr26270755qhd.36.1436448748819; Thu, 09 Jul 2015 06:32:28 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r187si6605040qha.27.2015.07.09.06.32.23; Thu, 09 Jul 2015 06:32:28 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id B15E661FBF; Thu, 9 Jul 2015 13:32:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, TVD_SPACE_RATIO, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 3AD4B61D09; Thu, 9 Jul 2015 13:32:20 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id D96A261D87; Thu, 9 Jul 2015 13:32:18 +0000 (UTC) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com [209.85.215.43]) by lists.linaro.org (Postfix) with ESMTPS id A20C461B6B for ; Thu, 9 Jul 2015 13:32:17 +0000 (UTC) Received: by laar3 with SMTP id r3so246838492laa.0 for ; Thu, 09 Jul 2015 06:32:16 -0700 (PDT) X-Received: by 10.112.118.210 with SMTP id ko18mr14690782lbb.75.1436448736485; Thu, 09 Jul 2015 06:32:16 -0700 (PDT) Received: from elxahtkds32.localdomain (host-95-204-222-149.mobileonline.telia.com. [95.204.222.149]) by smtp.gmail.com with ESMTPSA id w7sm1421353lag.42.2015.07.09.06.32.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 06:32:15 -0700 (PDT) From: "Balakrishna.Garapati" To: stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Thu, 9 Jul 2015 15:32:07 +0200 Message-Id: <1436448727-19098-1-git-send-email-balakrishna.garapati@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH] example:printing correct appl_mode X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balakrishna.garapati@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Balakrishna.Garapati Reviewed-by: Mike Holmes --- 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); }